function notify_callback() {
- var container = document.getElementById('notify');
if (xmlhttp.readyState == 4) {
- container.innerHTML=xmlhttp.responseText;
- }
+ notify_info(xmlhttp.responseText);
+ }
}
function updateFeedList(sort_key) {
} else if (!isValidURL(link.value)) {
alert("Error: Invalid feed URL.");
} else {
- notify("Adding feed...");
+ notify_progress("Adding feed...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=add&from=tt-rss&feed_url=" +
param_escape(link.value), true);
if (cat.value.length == 0) {
alert("Can't add category: no name specified.");
} else {
- notify("Adding feed category...");
+ notify_progress("Adding feed category...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats&action=add&cat=" +
param_escape(cat.value), true);
if (sqlexp.value.length == 0) {
alert("Can't add user: no login specified.");
} else {
- notify("Adding user...");
+ notify_progress("Adding user...");
xmlhttp.open("GET", "backend.php?op=pref-users&subop=add&login=" +
param_escape(sqlexp.value), true);
var ok = confirm("Remove selected labels?");
if (ok) {
- notify("Removing selected labels...");
+ notify_progress("Removing selected labels...");
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=remove&ids="+
param_escape(sel_rows.toString()), true);
var ok = confirm("Remove selected users?");
if (ok) {
- notify("Removing selected users...");
+ notify_progress("Removing selected users...");
xmlhttp.open("GET", "backend.php?op=pref-users&subop=remove&ids="+
param_escape(sel_rows.toString()), true);
var ok = confirm("Remove selected filters?");
if (ok) {
- notify("Removing selected filters...");
+ notify_progress("Removing selected filters...");
xmlhttp.open("GET", "backend.php?op=pref-filters&subop=remove&ids="+
param_escape(sel_rows.toString()), true);
if (ok) {
- notify("Unsubscribing from selected feeds...");
+ notify_progress("Unsubscribing from selected feeds...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+
param_escape(sel_rows.toString()), true);
var ok = confirm("Remove selected categories?");
if (ok) {
- notify("Removing selected categories...");
+ notify_progress("Removing selected categories...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats&action=remove&ids="+
param_escape(sel_rows.toString()), true);
var query = Form.serialize("edit_feed_form");
- notify("Saving feed...");
+ notify_progress("Saving feed...");
xmlhttp.open("POST", "backend.php", true);
xmlhttp.onreadystatechange=feedlist_callback;
return
}
- notify("Saving category...");
+ notify_progress("Saving category...");
var query = Form.serialize("feed_cat_edit_form");
closeInfoBox();
- notify("Saving label...");
+ notify_progress("Saving label...");
active_label = false;
return;
}
- notify("Saving user...");
+ notify_progress("Saving user...");
closeInfoBox();
}
} */
- notify("Saving filter...");
+ notify_progress("Saving filter...");
var query = Form.serialize("filter_edit_form");
var ok = confirm("Reset password of selected user?");
if (ok) {
- notify("Resetting password for selected user...");
+ notify_progress("Resetting password for selected user...");
var id = rows[0];
}
if (rows.length > 1) {
- notify("Please select only one feed.");
+ alert("Please select only one feed.");
return;
}
var rows = getSelectedFeeds();
if (rows.length == 0) {
- notify("No feeds are selected.");
+ alert("No feeds are selected.");
return;
}
if (rows.length > 1) {
- notify("Please select one feed.");
+ alert("Please select one feed.");
return;
}
debug("selectTab: " + id + "(NU: " + noupdate + ")");
-// notify("Loading, please wait...", true);
+ notify_progress("Loading, please wait...", true);
// close active infobox if needed
closeInfoBox();
if (sel_rows.length > 0) {
- notify("Changing category of selected feeds...");
+ notify_progress("Changing category of selected feeds...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=categorize&ids="+
param_escape(sel_rows.toString()) + "&cat_id=" + param_escape(cat_id), true);