diff --git a/module/custom/control.php b/module/custom/control.php index bd707c630d..0d6fd0f0bb 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -316,6 +316,8 @@ class custom extends control { $this->custom->deleteItems("module=$module§ion=$field"); } + + if(in_array($module, array('serverroom', 'host'))) return $this->send(array('result' => 'success', 'load' => true)); return print(js::reload('parent')); } diff --git a/module/ops/ui/setting.html.php b/module/ops/ui/setting.html.php index 845e5c9a5f..739279cf6b 100644 --- a/module/ops/ui/setting.html.php +++ b/module/ops/ui/setting.html.php @@ -80,7 +80,7 @@ $formRows[] = formRow $hasSideBar = !empty($lang->{$module}->osNameList) && array_key_exists($field, $lang->{$module}->osNameList); $actions = array('submit'); -if(common::hasPriv('custom', 'restore')) $actions[] = array('class' => 'ajax-submit', 'text' => $lang->custom->restore, 'data-confirm' => $lang->custom->confirmRestore, 'url' => $this->createLink('custom', 'restore', "module=$module&field=$fieldList")); +if(common::hasPriv('custom', 'restore')) $actions[] = array('class' => 'ajax-submit', 'text' => $lang->custom->restore, 'data-confirm' => $lang->custom->confirmRestore, 'url' => $this->createLink('custom', 'restore', "module=$module&field=$fieldList&confirm=yes")); formPanel ( setID('opsForm'),