* Modify error tips and alert box size.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user