Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add get item list to admin menu

  • Loading branch information...
commit f16fe8156a5593ddffc865cb2bd20f46d30d27bc 1 parent 8f78482
@cubehouse cubehouse authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 js/admin.js
View
24 js/admin.js
@@ -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(
Please sign in to comment.
Something went wrong with that request. Please try again.