Permalink
Browse files

Add get item list to admin menu

  • Loading branch information...
cubehouse committed Jul 3, 2013
1 parent 8f78482 commit f16fe8156a5593ddffc865cb2bd20f46d30d27bc
Showing with 24 additions and 0 deletions.
  1. +24 −0 js/admin.js
View
@@ -237,6 +237,30 @@ define(["config", "popup", "api", "msg", "items", "forms", "jquery", "jqueryui/s
);
}
+ // get cat IDs
+ if (_config.settings.database_admin && list.type == "cat" && data) {
+ menus.push(
+ {
+ name: "Get Item IDs",
+ func: function() {
+ api.post("admin/get/cat/"+data.id, {}, function(d) {
+ popup.form([
+ {
+ type: "textarea",
+ name: "page",
+ label: "ID List",
+ value: d.data,
+ width: "600px"
+ }
+ ], "Whee");
+ });
+
+ return false;
+ }
+ }
+ );
+ }
+
// reorder items
if (_config.settings.database_edit && list.type=="cat" && data && data.items && data.cats && (data.items.length || data.cats.length) ) {
menus.push(

0 comments on commit f16fe81

Please sign in to comment.