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 +}