Kaynağa Gözat

Update boxwidget and tree to activate ajax loaded elements

Abdullah Almsaeed 9 yıl önce
ebeveyn
işleme
0bd8306502
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      dist/js/app.js
  2. 1 1
      dist/js/app.min.js

+ 1 - 1
dist/js/app.js

@@ -385,7 +385,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;
-    $("li a", $(menu)).on('click', 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();

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/js/app.min.js