From 9e31e1b94d554f006b0759f8a07376fd6114ee6a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Mar 2007 21:07:28 +0100 Subject: add some more loading prompts --- functions.js | 2 +- prefs.js | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/functions.js b/functions.js index 39b77d6a0..72011568e 100644 --- a/functions.js +++ b/functions.js @@ -1320,7 +1320,7 @@ function displayDlg(id, param) { return } - notify(""); + notify_progress("Loading, please wait..."); xmlhttp.open("GET", "backend.php?op=dlg&id=" + param_escape(id) + "¶m=" + param_escape(param), true); diff --git a/prefs.js b/prefs.js index 53f9ecc98..cec724f4e 100644 --- a/prefs.js +++ b/prefs.js @@ -284,6 +284,8 @@ function editLabel(id) { return } + notify_progress("Loading, please wait..."); + document.getElementById("label_create_btn").disabled = true; active_label = id; @@ -305,6 +307,8 @@ function editUser(id) { return } + notify_progress("Loading, please wait..."); + selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false); selectTableRowById('UMRR-'+id, 'UMCHK-'+id, true); @@ -322,6 +326,8 @@ function editFilter(id) { return } + notify_progress("Loading, please wait..."); + document.getElementById("create_filter_btn").disabled = true; selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false); @@ -341,6 +347,8 @@ function editFeed(feed) { return } + notify_progress("Loading, please wait..."); + // clean selection from all rows & select row being edited selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false); selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true); @@ -360,6 +368,8 @@ function editFeedCat(cat) { return } + notify_progress("Loading, please wait..."); + active_feed_cat = cat; xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats&action=edit&id=" + @@ -665,6 +675,13 @@ function labelTest() { function displayHelpInfobox(topic_id) { + if (!xmlhttp_ready(xmlhttp)) { + printLockingError(); + return + } + + notify_progress("Loading help..."); + xmlhttp.open("GET", "backend.php?op=help&tid=" + param_escape(topic_id) + "&noheaders=1", true); @@ -1142,7 +1159,7 @@ function selectTab(id, noupdate, subop) { debug("selectTab: " + id + "(NU: " + noupdate + ")"); - notify_progress("Loading, please wait...", true); + notify_progress("Loading, please wait..."); // close active infobox if needed closeInfoBox(); -- cgit v1.2.3