Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expose filename icon usage for categories

  • Loading branch information...
commit 5a1164d8a0d09cd99712b8d41655f1909ef1374f 1 parent 578904f
@cubehouse cubehouse authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 js/admin.js
View
16 js/admin.js
@@ -105,17 +105,13 @@ define(["config", "popup", "api", "msg", "items", "forms", "jquery", "jqueryui/s
{
name: "Category ID",
value: "cat_id"
+ },
+ {
+ name: "AZ4 Filename",
+ value: "file"
}
];
- // only admins can do this one
- if (_config.settings.database_admin) {
- dropdownOpts.push({
- name: "AZ4 CDN Filename",
- value: "file"
- });
- }
-
menus.push(
{
name: "Add New Category",
@@ -199,6 +195,10 @@ define(["config", "popup", "api", "msg", "items", "forms", "jquery", "jqueryui/s
cb("//cdn.alphazone4.com/c/"+res.image);
});
};
+ } else if (formdata.iconsrc == "file") {
+ icon_getter = function(cb) {
+ cb("//cdn.alphazone4.com/c/"+formdata.datainput);
+ };
}
if (icon_getter) {
Please sign in to comment.
Something went wrong with that request. Please try again.