Improve click event handler

pull/904/head
0xMatt 2016-02-01 12:44:51 -06:00
parent 93e99de603
commit f284016fa8
1 changed files with 1 additions and 1 deletions

2
dist/js/app.js vendored
View File

@ -388,7 +388,7 @@ 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;
$(menu).on('click', 'li a', function (e) { $(document).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();