From 526389b2d380177490605037fdc3a24ebc688fac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 20:56:30 +0300 Subject: update notify_* calls to use Notify --- plugins/import_export/import_export.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/import_export/import_export.js') diff --git a/plugins/import_export/import_export.js b/plugins/import_export/import_export.js index 780f6bfc7..56a2a5c3e 100644 --- a/plugins/import_export/import_export.js +++ b/plugins/import_export/import_export.js @@ -14,7 +14,7 @@ function exportData() { style: "width: 600px", prepare: function() { - notify_progress("Loading, please wait..."); + Notify.progress("Loading, please wait..."); new Ajax.Request("backend.php", { parameters: "op=pluginhandler&plugin=import_export&method=exportrun&offset=" + exported, @@ -53,7 +53,7 @@ function exportData() { exception_error("exportData", e, transport.responseText); } - notify(''); + Notify.close(); } }); @@ -81,7 +81,7 @@ function dataImportComplete(iframe) { Element.hide(iframe); - notify(''); + Notify.close(); if (dijit.byId('dataImportDlg')) dijit.byId('dataImportDlg').destroyRecursive(); @@ -112,7 +112,7 @@ function importData() { alert(__("Please choose the file first.")); return false; } else { - notify_progress("Importing, please wait...", true); + Notify.progress("Importing, please wait...", true); Element.show("data_upload_iframe"); -- cgit v1.2.3 From 71fc6d45bd761a9d2715faa68f2b8c0271ee7169 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 13:38:13 +0300 Subject: refactor error reporting to AppBase; keep exception_error() for now as a shim --- plugins/import_export/import_export.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/import_export/import_export.js') diff --git a/plugins/import_export/import_export.js b/plugins/import_export/import_export.js index 56a2a5c3e..8dc5f7570 100644 --- a/plugins/import_export/import_export.js +++ b/plugins/import_export/import_export.js @@ -50,7 +50,7 @@ function exportData() { "Error occured, could not export data."; } } catch (e) { - exception_error("exportData", e, transport.responseText); + App.Error.report(e); } Notify.close(); @@ -71,7 +71,7 @@ function exportData() { } catch (e) { - exception_error("exportData", e); + App.Error.report(e); } } @@ -100,7 +100,7 @@ function dataImportComplete(iframe) { dialog.show(); } catch (e) { - exception_error("dataImportComplete", e); + App.Error.report(e); } } -- cgit v1.2.3