Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Extra cat icon function

  • Loading branch information...
commit 07cb1f7c8f56614703e87ac67926180bfe1db443 1 parent e2132c9
@cubehouse cubehouse authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/admin.js
View
7 js/admin.js
@@ -101,6 +101,10 @@ define(["config", "popup", "api", "msg", "items", "forms", "jquery", "jqueryui/s
{
name: "Item ID",
value: "item_id"
+ },
+ {
+ name: "Category ID",
+ value: "cat_id"
}
];
@@ -145,6 +149,9 @@ define(["config", "popup", "api", "msg", "items", "forms", "jquery", "jqueryui/s
// use an item icon
url = "add/cat_item";
form.item_id = form.datainput;
+ } else if (form.iconsrc == "cat_id") {
+ url = "add/cat_cat";
+ form.cat_id = form.datainput;
}
api.post("admin/"+url+"/"+data.id, form, function(response) {
Please sign in to comment.
Something went wrong with that request. Please try again.