Skip to content

Commit

Permalink
click collapsible dropdown-header
Browse files Browse the repository at this point in the history
svn path=/ZMS/branches/zms4/; revision=5816
  • Loading branch information
zmsdev committed Aug 23, 2020
1 parent 926d540 commit 64b89d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 64b89d3

Please sign in to comment.