Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Jun 22, 2022
1 parent 10550ec commit c51285f
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -87,11 +87,13 @@
if (isset($_GET['autosize'])) {
$autoSize = $_GET['autosize'];
}
$autoSize = xss_clean($autoSize);

$type = '';
if (isset($_GET['type'])) {
$type = $_GET['type'];
}
$type = xss_clean($type);

$mod_id = $mod_orig_id = false;
$is_linked_mod = false;
Expand Down Expand Up @@ -403,7 +405,9 @@
if (mw.notification) {
mw.notification.success('<?php _ejs('Settings are saved') ?>');
}
<?php if (isset($params['id'])) : ?>
mw.reload_module_parent('#<?php print $params['id'] ?>')
<?php endif; ?>

});

Expand Down Expand Up @@ -440,9 +444,11 @@
<body class="mw-external-loading loading">
<div id="settings-main">
<div id="settings-container">
<div class="mw-module-live-edit-settings <?php print $params['id'] ?>"
id="module-id-<?php print $params['id'] ?>">{content}
</div>
<?php if (isset($params['id'])) : ?>
<div class="mw-module-live-edit-settings <?php print $params['id'] ?>"
id="module-id-<?php print $params['id'] ?>">{content}
</div>
<?php endif; ?>
</div>
</div>

Expand Down

0 comments on commit c51285f

Please sign in to comment.