Skip to content

Commit

Permalink
move tag colour override to static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jat255 committed Dec 1, 2018
1 parent d6eefbc commit ba452e0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// The following jQuery snippet will add a small square next to the selection
// drop-down on the `Add tag` page that will update to show the selected tag
// color as the drop-down value is changed. Copy and paste it into
// ``PAPERLESS_MEDIADIR/overrides.js`` to see the effects.
// color as the drop-down value is changed.

if (django.jQuery("#id_colour").length) {

Expand Down Expand Up @@ -30,8 +29,7 @@ if (django.jQuery("#id_colour").length) {

// The following jQuery snippet will add a small square next to each selection
// drop-down on the `Edit tags` page that will update to show the selected tag
// color as the drop-down value is changed. Copy and paste it into
// ``PAPERLESS_MEDIADIR/overrides.js`` to see the effects.
// color as the drop-down value is changed.

if (django.jQuery('select[id*="-colour"]').length) {
django.jQuery('select[id*="-colour"]').each(function (index, element) {
Expand Down Expand Up @@ -64,4 +62,4 @@ if (django.jQuery('select[id*="-colour"]').length) {
console.log('#' + id, loop_colour)
});
})
}
}

0 comments on commit ba452e0

Please sign in to comment.