mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 16:41:30 +00:00
prefs, remove obsolete removeSelectedPrefProfiles()
This commit is contained in:
28
prefs.js
28
prefs.js
@@ -464,34 +464,6 @@ function purgeSelectedFeeds() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeSelectedPrefProfiles() {
|
|
||||||
|
|
||||||
var sel_rows = getSelectedFeedCats();
|
|
||||||
|
|
||||||
if (sel_rows.length > 0) {
|
|
||||||
|
|
||||||
var ok = confirm(__("Remove selected profiles? Active and default profiles will not be removed."));
|
|
||||||
|
|
||||||
if (ok) {
|
|
||||||
notify_progress("Removing selected profiles...");
|
|
||||||
|
|
||||||
var query = "?op=rpc&subop=remprofiles&ids="+
|
|
||||||
param_escape(sel_rows.toString());
|
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
|
||||||
parameters: query,
|
|
||||||
onComplete: function(transport) {
|
|
||||||
editProfiles();
|
|
||||||
} });
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
alert(__("No profiles selected."));
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function userEditCancel() {
|
function userEditCancel() {
|
||||||
closeInfoBox();
|
closeInfoBox();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user