* finish task #6087.

This commit is contained in:
wangyidong
2019-07-15 17:10:52 +08:00
parent ae935b46b1
commit cb87a2b0cf
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ class translate extends control
if($statusFile)
{
$this->app->loadLang('editor');
$this->send(array('result' => 'fail', 'message' => str_replace('\n', '<br />', sprintf($this->lang->editor->noticeOkFile, $statusFile))));
$this->send(array('result' => 'fail', 'callback' => 'bootAlert("' . str_replace('\n', '<br />', sprintf($this->lang->editor->noticeOkFile, $statusFile) . '")')));
}
$this->translate->addTranslation($language, $module, $referLang);
+13
View File
@@ -763,6 +763,19 @@ function convertURL()
});
}
/**
* Alert message with bootbox.
*
* @param message $message
* @access public
* @return bool
*/
function bootAlert(message)
{
bootbox.alert(message);
return false;
}
/* Ping the server every some minutes to keep the session. */
needPing = true;