From 20eba516a456b6243258393b847edd90e953aa57 Mon Sep 17 00:00:00 2001 From: xvonabur Date: Sun, 11 Oct 2015 15:56:02 +0300 Subject: [PATCH] Remove sidebar click handler, before assigning one --- dist/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/js/app.js b/dist/js/app.js index 36d187005..3fe195f3b 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -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();