Remove sidebar click handler, before assigning one

pull/1094/head
xvonabur 2015-10-11 15:56:02 +03:00
parent 1accd72830
commit 20eba516a4
1 changed files with 2 additions and 1 deletions

3
dist/js/app.js vendored
View File

@ -388,7 +388,8 @@ function _init() {
$.AdminLTE.tree = function (menu) { $.AdminLTE.tree = function (menu) {
var _this = this; var _this = this;
var animationSpeed = $.AdminLTE.options.animationSpeed; 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 //Get the clicked link and the next element
var $this = $(this); var $this = $(this);
var checkElement = $this.next(); var checkElement = $this.next();