db_query($this->link, "COMMIT");
}
+ function removeCat() {
+ $ids = split(",", db_escape_string($_REQUEST["ids"]));
+ foreach ($ids as $id) {
+ remove_feed_category($this->link, $id, $_SESSION["uid"]);
+ }
+ }
+
+ function addCat() {
+ $feed_cat = db_escape_string(trim($_REQUEST["cat"]));
+
+ add_feed_category($this->link, $feed_cat);
+ }
+
function index() {
print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">";
var ok = confirm(__("Remove category %s? Any nested feeds would be placed into Uncategorized.").replace("%s", item.name));
if (ok) {
- var query = "?op=pref-feeds&method=editCats&action=remove&ids="+
+ var query = "?op=pref-feeds&method=removeCat&ids="+
param_escape(id);
notify_progress("Removing category...");
notify_progress("Creating category...");
- var query = "?op=pref-feeds&method=editCats&action=add&cat=" +
+ var query = "?op=pref-feeds&method=addCat&cat=" +
param_escape(title);
new Ajax.Request("backend.php", {