From ba452e0524c2e8f10559ad4e17129836c11c208a Mon Sep 17 00:00:00 2001 From: Joshua Taillon Date: Sat, 1 Dec 2018 09:14:44 -0500 Subject: [PATCH] move tag colour override to static folder --- .../documents/static/js/colours.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename overrides/tag_colour_preview.js => src/documents/static/js/colours.js (90%) diff --git a/overrides/tag_colour_preview.js b/src/documents/static/js/colours.js similarity index 90% rename from overrides/tag_colour_preview.js rename to src/documents/static/js/colours.js index a4efa7907..f8f881aa1 100644 --- a/overrides/tag_colour_preview.js +++ b/src/documents/static/js/colours.js @@ -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) { @@ -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) { @@ -64,4 +62,4 @@ if (django.jQuery('select[id*="-colour"]').length) { console.log('#' + id, loop_colour) }); }) -} \ No newline at end of file +}