Merge pull request #1094 from xvonabur/patch-2

Remove sidebar click handler, before assigning one. Fix sidebar autoclose bug.
This commit is contained in:
Abdullah Almsaeed 2016-07-01 11:57:19 -04:00 committed by GitHub
commit 9d6c25d7b2

3
dist/js/app.js vendored
View file

@ -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();