From 39ba94e30336fa9a57fb3c2fe4c55480ff986232 Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Tue, 26 Dec 2023 12:34:22 +0300 Subject: [PATCH] * ext action can show alert on result --- src/content/mytinytodo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/mytinytodo.js b/src/content/mytinytodo.js index ee0385f..45594c7 100644 --- a/src/content/mytinytodo.js +++ b/src/content/mytinytodo.js @@ -2999,6 +2999,10 @@ function extensionSettingsAction(actionString, ext, formData) $('#page_ajax .mtt-settings-table').html(json.html); //FIXME: maybe whole page? return; } + if (json.alertText) { + mttAlert(json.alertText); + return; + } const callback = function() { if (json.msg) flashInfo(json.msg, json.details); if (json.reload) {