add some more loading prompts

This commit is contained in:
Andrew Dolgov 2007-03-02 21:07:28 +01:00
parent eab291c403
commit 9e31e1b94d
2 changed files with 19 additions and 2 deletions

View file

@ -1320,7 +1320,7 @@ function displayDlg(id, param) {
return return
} }
notify(""); notify_progress("Loading, please wait...");
xmlhttp.open("GET", "backend.php?op=dlg&id=" + xmlhttp.open("GET", "backend.php?op=dlg&id=" +
param_escape(id) + "&param=" + param_escape(param), true); param_escape(id) + "&param=" + param_escape(param), true);

View file

@ -284,6 +284,8 @@ function editLabel(id) {
return return
} }
notify_progress("Loading, please wait...");
document.getElementById("label_create_btn").disabled = true; document.getElementById("label_create_btn").disabled = true;
active_label = id; active_label = id;
@ -305,6 +307,8 @@ function editUser(id) {
return return
} }
notify_progress("Loading, please wait...");
selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false); selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false);
selectTableRowById('UMRR-'+id, 'UMCHK-'+id, true); selectTableRowById('UMRR-'+id, 'UMCHK-'+id, true);
@ -322,6 +326,8 @@ function editFilter(id) {
return return
} }
notify_progress("Loading, please wait...");
document.getElementById("create_filter_btn").disabled = true; document.getElementById("create_filter_btn").disabled = true;
selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false); selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false);
@ -341,6 +347,8 @@ function editFeed(feed) {
return return
} }
notify_progress("Loading, please wait...");
// clean selection from all rows & select row being edited // clean selection from all rows & select row being edited
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false); selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true); selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
@ -360,6 +368,8 @@ function editFeedCat(cat) {
return return
} }
notify_progress("Loading, please wait...");
active_feed_cat = cat; active_feed_cat = cat;
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats&action=edit&id=" + xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats&action=edit&id=" +
@ -665,6 +675,13 @@ function labelTest() {
function displayHelpInfobox(topic_id) { function displayHelpInfobox(topic_id) {
if (!xmlhttp_ready(xmlhttp)) {
printLockingError();
return
}
notify_progress("Loading help...");
xmlhttp.open("GET", "backend.php?op=help&tid=" + xmlhttp.open("GET", "backend.php?op=help&tid=" +
param_escape(topic_id) + "&noheaders=1", true); param_escape(topic_id) + "&noheaders=1", true);
@ -1142,7 +1159,7 @@ function selectTab(id, noupdate, subop) {
debug("selectTab: " + id + "(NU: " + noupdate + ")"); debug("selectTab: " + id + "(NU: " + noupdate + ")");
notify_progress("Loading, please wait...", true); notify_progress("Loading, please wait...");
// close active infobox if needed // close active infobox if needed
closeInfoBox(); closeInfoBox();