* finish task #6087.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user