From f284016fa8f97d9951999f146ae947b42f31e79e Mon Sep 17 00:00:00 2001 From: 0xMatt Date: Mon, 1 Feb 2016 12:44:51 -0600 Subject: [PATCH] Improve click event handler --- dist/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/app.js b/dist/js/app.js index 81804c05e..b016ffe84 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -388,7 +388,7 @@ function _init() { $.AdminLTE.tree = function (menu) { var _this = this; var animationSpeed = $.AdminLTE.options.animationSpeed; - $(menu).on('click', 'li a', function (e) { + $(document).on('click', menu + ' li a', function (e) { //Get the clicked link and the next element var $this = $(this); var checkElement = $this.next();