diff options
author | Andrew Dolgov <[email protected]> | 2007-03-02 21:07:28 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-02 21:07:28 +0100 |
commit | 9e31e1b94d554f006b0759f8a07376fd6114ee6a (patch) | |
tree | 3073764e4c7189a319b7782756a718227a5c309a | |
parent | eab291c4032679aa1a166d7f2b43fef3ae1f3d77 (diff) |
add some more loading prompts
-rw-r--r-- | functions.js | 2 | ||||
-rw-r--r-- | 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); @@ -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(); |