mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
ext can alert on settings page refresh
This commit is contained in:
parent
9191031140
commit
081c1a94fe
2 changed files with 8 additions and 2 deletions
|
|
@ -3004,7 +3004,12 @@ function extensionSettingsAction(actionString, ext, formData)
|
|||
return;
|
||||
}
|
||||
const callback = function() {
|
||||
if (json.msg) flashInfo(json.msg, json.details);
|
||||
if (json.alertTextOnLoad) {
|
||||
mttAlert(json.alertTextOnLoad);
|
||||
}
|
||||
else if (json.msg) {
|
||||
flashInfo(json.msg, json.details);
|
||||
}
|
||||
if (json.reload) {
|
||||
setTimeout( function(){
|
||||
//window.location.hash = '';
|
||||
|
|
|
|||
|
|
@ -31,8 +31,9 @@ class Controller extends \ApiController
|
|||
|
||||
$this->response->data = [
|
||||
'total' => 1,
|
||||
'ok' => true,
|
||||
'msg' => __("backup.done"),
|
||||
'details' => ''
|
||||
'alertTextOnLoad' => __("backup.done"),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue