summaryrefslogtreecommitdiff
path: root/static/admin/js/collapse.js
diff options
context:
space:
mode:
authorprashantsinalkar2020-03-06 12:22:01 +0530
committerprashantsinalkar2020-03-06 12:22:01 +0530
commit54e3e9d75088b7b63419dd8fc15095324d19fac9 (patch)
treed447e52cdc343eb69a7382eabd5ab554b3883132 /static/admin/js/collapse.js
parent493e7d69008084fd6e54c674a8890d6b0c9869a5 (diff)
downloadarduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.tar.gz
arduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.tar.bz2
arduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.zip
added static directory
Diffstat (limited to 'static/admin/js/collapse.js')
l---------[-rw-r--r--]static/admin/js/collapse.js27
1 files changed, 1 insertions, 26 deletions
diff --git a/static/admin/js/collapse.js b/static/admin/js/collapse.js
index 4b29689..efac6c9 100644..120000
--- a/static/admin/js/collapse.js
+++ b/static/admin/js/collapse.js
@@ -1,26 +1 @@
-/*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(' (<a id="fieldsetcollapser' +
- i + '" class="collapse-toggle" href="#">' + gettext("Show") +
- '</a>)');
- }
- });
- // 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);
+/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