Merge pull request #1094 from xvonabur/patch-2

Remove sidebar click handler, before assigning one. Fix sidebar autoclose bug.
pull/1109/head
Abdullah Almsaeed 9 years ago committed by GitHub
commit 9d6c25d7b2

3
dist/js/app.js vendored

@ -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…
Cancel
Save