From 54e3e9d75088b7b63419dd8fc15095324d19fac9 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Fri, 6 Mar 2020 12:22:01 +0530 Subject: added static directory --- static/admin/js/collapse.js | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) mode change 100644 => 120000 static/admin/js/collapse.js (limited to 'static/admin/js/collapse.js') diff --git a/static/admin/js/collapse.js b/static/admin/js/collapse.js deleted file mode 100644 index 4b29689..0000000 --- a/static/admin/js/collapse.js +++ /dev/null @@ -1,26 +0,0 @@ -/*global gettext*/ -(function($) { - 'use strict'; - $(document).ready(function() { - // Add anchor tag for Show/Hide link - $("fieldset.collapse").each(function(i, elem) { - // Don't hide if fields in this fieldset have errors - if ($(elem).find("div.errors").length === 0) { - $(elem).addClass("collapsed").find("h2").first().append(' (' + gettext("Show") + - ')'); - } - }); - // Add toggle to anchor tag - $("fieldset.collapse a.collapse-toggle").on('click', function(ev) { - if ($(this).closest("fieldset").hasClass("collapsed")) { - // Show - $(this).text(gettext("Hide")).closest("fieldset").removeClass("collapsed").trigger("show.fieldset", [$(this).attr("id")]); - } else { - // Hide - $(this).text(gettext("Show")).closest("fieldset").addClass("collapsed").trigger("hide.fieldset", [$(this).attr("id")]); - } - return false; - }); - }); -})(django.jQuery); diff --git a/static/admin/js/collapse.js b/static/admin/js/collapse.js new file mode 120000 index 0000000..efac6c9 --- /dev/null +++ b/static/admin/js/collapse.js @@ -0,0 +1 @@ +/home/prashant/www/html/python/python_3.x/django_3.x/os-hardware/env-osh/lib/python3.6/site-packages/django/contrib/admin/static/admin/js/collapse.js \ No newline at end of file -- cgit