jqh 4 роки тому
батько
коміт
d959c0e18b
1 змінених файлів з 6 додано та 4 видалено
  1. 6 4
      src/Widgets/Modal.php

+ 6 - 4
src/Widgets/Modal.php

@@ -261,9 +261,11 @@ var modal = $(this).find('.modal-body');
 
 modal.html('<div style="min-height:150px"></div>').loading();
         
-Dcat.helpers.asyncRender('{$url}', function (html) {
-    modal.html(html);
-});
+setTimeout(function () {
+    Dcat.helpers.asyncRender('{$url}', function (html) {
+        modal.html(html);
+    });
+}, 100);
 JS
 );
     }
@@ -319,7 +321,7 @@ HTML;
         }
 
         return <<<HTML
-<span data-toggle="modal" data-target="#{$this->getId()}">{$button}</span>
+<span style="cursor: pointer" data-toggle="modal" data-target="#{$this->getId()}">{$button}</span>
 HTML;
     }
 }