From d29c8ea124d4c19e23f73b8a307dd177d8a1fe7b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 27 Feb 2019 16:17:10 -0500 Subject: [PATCH] [2.2.x] Refs #29523 -- Updated admin's collapse.min.js. Omitted in ba83378a7762c51be235b521aa5b48233d6c6c82. Backport of 93e892bb645b16ebaf287beb5fe7f3ffe8d10408 from master. --- django/contrib/admin/static/admin/js/collapse.min.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/django/contrib/admin/static/admin/js/collapse.min.js b/django/contrib/admin/static/admin/js/collapse.min.js index 6e1a06de16..6f59280e5a 100644 --- a/django/contrib/admin/static/admin/js/collapse.min.js +++ b/django/contrib/admin/static/admin/js/collapse.min.js @@ -1,5 +1,2 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e'+gettext("Show")+")")});a("fieldset.collapse a.collapse-toggle").on("click",function(c){a(this).closest("fieldset").hasClass("collapsed")?a(this).text(gettext("Hide")).closest("fieldset").removeClass("collapsed").trigger("show.fieldset",[a(this).attr("id")]): -a(this).text(gettext("Show")).closest("fieldset").addClass("collapsed").trigger("hide.fieldset",[a(this).attr("id")]);return!1})})})(django.jQuery); +(function(){var e=function(a,b){return a.nodeName===b.toUpperCase()?a:"BODY"===a.parentNode.nodeName?null:a.parentNode&&e(a.parentNode,b)};window.addEventListener("load",function(){for(var a=document.querySelectorAll("fieldset.collapse"),b=0;b