From 64b89d39c8e2572830e0f27a264ffced076b47d9 Mon Sep 17 00:00:00 2001 From: zmsdev Date: Sun, 23 Aug 2020 13:42:56 +0000 Subject: [PATCH] click collapsible dropdown-header svn path=/ZMS/branches/zms4/; revision=5816 --- .../zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js b/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js index 5a7f2e4fc..14510f9f3 100644 --- a/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js +++ b/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js @@ -1656,8 +1656,9 @@ ZMIActionList.prototype.over = function(el, e, cb) { // Expandable headers $(".dropdown-header",$ul) .click(function (event) { + var duration = (event.pageX && event.pageY) ? 400 : 0; // User-event show animation $("i",this).toggleClass("fa-caret-down").toggleClass("fa-caret-right"); - $(this).nextUntil(".dropdown-header").slideToggle(); + $(this).nextUntil(".dropdown-header").slideToggle(duration); event.stopImmediatePropagation(); event.stopPropagation(); });