]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs, remove obsolete removeSelectedPrefProfiles()
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 28 Mar 2011 11:55:50 +0000 (15:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 28 Mar 2011 11:55:50 +0000 (15:55 +0400)
prefs.js

index 0e3dced9d7b86caa8cbb1a43532b9f7e30a3e2cc..9bca57cd96d02ac3fa7b75c7125ddf8b36d53bcc 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -464,34 +464,6 @@ function purgeSelectedFeeds() {
        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() {
        closeInfoBox();
        return false;