summaryrefslogtreecommitdiff
path: root/src/client/view/item_info.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-08 00:59:31 +0300
committerAlon Levy <alon@pobox.com>2015-04-09 06:39:23 +0300
commitda15391910d9566c394b5dfbc07fa18712e832ec (patch)
treeace4625e1024b0881660d9fb59afa30402fc3540 /src/client/view/item_info.js
parente7349cc3f1c24a74da359058a5719712f6d613e6 (diff)
client: item_view: make type dropdown domain based
Diffstat (limited to 'src/client/view/item_info.js')
-rw-r--r--src/client/view/item_info.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/view/item_info.js b/src/client/view/item_info.js
index 757de261..719fe9f2 100644
--- a/src/client/view/item_info.js
+++ b/src/client/view/item_info.js
@@ -307,6 +307,16 @@ function hide(do_commit) {
info_container.hide();
}
+function first_time_init() {
+ // setup the special type select box based on the domain.
+ var root = info.find('#edittype');
+
+ model_types.nodetypes.forEach(function (nodetype) {
+ root.append($('<option value="' + nodetype + '">' + util.capitalize(nodetype) + '</option>'));
+ });
+}
+
+first_time_init();
init();
return {