mirror of https://github.com/ColorlibHQ/AdminLTE
Merge pull request #1094 from xvonabur/patch-2
Remove sidebar click handler, before assigning one. Fix sidebar autoclose bug.pull/1109/head
commit
9d6c25d7b2
|
@ -388,7 +388,8 @@ function _init() {
|
|||
$.AdminLTE.tree = function (menu) {
|
||||
var _this = this;
|
||||
var animationSpeed = $.AdminLTE.options.animationSpeed;
|
||||
$(document).on('click', menu + ' li a', function (e) {
|
||||
$(document).off('click', menu + ' li a')
|
||||
.on('click', menu + ' li a', function (e) {
|
||||
//Get the clicked link and the next element
|
||||
var $this = $(this);
|
||||
var checkElement = $this.next();
|
||||
|
|
Loading…
Reference in New Issue