summaryrefslogtreecommitdiff
path: root/src/client/view/item_info.js
diff options
context:
space:
mode:
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 {