Skip to content

Commit

Permalink
Fix issue Modal does not work on Module Astroid Layout #908
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Dec 10, 2024
1 parent 9253f57 commit f67caa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/fields/astroidlayoutdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function getInput() {
$wa->registerAndUseStyle('astroid.article.widget.data', "media/astroid/assets/vendor/manager/dist/index.css");
$wa->registerAndUseStyle('astroid.icons', "media/astroid/assets/vendor/linearicons/font.min.css");
$wa->useScript('bootstrap.tab');
$wa->useScript('bootstrap.modal');
$wa->registerAndUseScript('astroid.article.widget.data', 'media/astroid/assets/vendor/manager/dist/index.js', ['relative' => true, 'version' => 'auto'], ['type' => 'module']);
return $html;
}
Expand Down
1 change: 1 addition & 0 deletions framework/fields/astroidlayoutmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ protected function getInput() {
$wa->registerAndUseStyle('astroid.manager', "media/astroid/assets/vendor/manager/dist/index.css");
$wa->registerAndUseStyle('astroid.icons', "media/astroid/assets/vendor/linearicons/font.min.css");
$wa->useScript('bootstrap.tab');
$wa->useScript('bootstrap.modal');
$wa->registerAndUseScript('astroid.manager', 'media/astroid/assets/vendor/manager/dist/index.js', ['relative' => true, 'version' => 'auto'], ['type' => 'module']);
$wa->addInlineScript("(function ($) { $(document).ready(function () { $('#astroid-layout-module').parent().prev().remove(); }); })(jQuery)");
return $html;
Expand Down

0 comments on commit f67caa6

Please sign in to comment.