diff --git a/module/install/control.php b/module/install/control.php index 252eec0e58..26c67cf290 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -121,7 +121,7 @@ class install extends control if(!empty($_POST)) { $return = $this->install->checkConfig(); - if($return->result != 'ok') return $this->send(array('result' => 'fail', 'callback' => "zui.Modal.alert({icon: 'icon-exclamation-sign', size: 'sm', iconClass: 'text-4xl text-warning', message: '" . str_replace("'", '"', $return->error) . "'})")); + if($return->result != 'ok') return $this->send(array('result' => 'fail', 'callback' => "zui.Modal.alert({icon: 'icon-exclamation-sign', size: '480', iconClass: 'text-4xl text-warning', message: '" . str_replace("'", '"', $return->error) . "'})")); $myConfig = array(); foreach($_POST as $key => $value) $myConfig[$key] = $value; diff --git a/module/install/ui/step3.html.php b/module/install/ui/step3.html.php index 0d2e9ed5e1..88f7461785 100644 --- a/module/install/ui/step3.html.php +++ b/module/install/ui/step3.html.php @@ -14,7 +14,7 @@ set::zui(true); if(empty($myConfig)) { - h::js("zui.Modal.alert('{$lang->install->errorNotInitConfig}').then((res) => {openUrl('" . inlink('step2') . "')});"); + h::js("zui.Modal.alert({size: '480', message: '{$lang->install->errorNotInitConfig}'}).then((res) => {openUrl('" . inlink('step2') . "')});"); render('pagebase'); return; } diff --git a/module/install/ui/step4.html.php b/module/install/ui/step4.html.php index e53f30837a..01bed28c3c 100644 --- a/module/install/ui/step4.html.php +++ b/module/install/ui/step4.html.php @@ -14,7 +14,7 @@ set::zui(true); if(isset($error)) { - h::js("zui.Modal.alert('{$lang->install->errorNotSaveConfig}').then((res) => {openUrl('" . inlink('step3') . "')});"); + h::js("zui.Modal.alert({size: '480', message: '{$error}'}).then((res) => {openUrl('" . inlink('step3') . "')});"); render('pagebase'); return; } diff --git a/module/install/ui/step5.html.php b/module/install/ui/step5.html.php index 93b8dc83c7..1e40bc3209 100644 --- a/module/install/ui/step5.html.php +++ b/module/install/ui/step5.html.php @@ -12,9 +12,9 @@ namespace zin; set::zui(true); -if(!isset($this->config->installed) || !$this->config->installed) +if(isset($error)) { - h::js("zui.Modal.alert('{$lang->install->errorNotSaveConfig}').then((res) => {openUrl('" . inlink('step3') . "')});"); + h::js("zui.Modal.alert({size: '480', message: '{$error}'}).then((res) => {openUrl('" . inlink('step3') . "')});"); render('pagebase'); return; }