Explorar el Código

Improve click event handler

0xMatt hace 9 años
padre
commit
f284016fa8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dist/js/app.js

+ 1 - 1
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();