editor: status bar
[fnpeditor.git] / src / editor / modules / metadataEditor / metadataEditor.js
index 0eace02..b9021bc 100644 (file)
@@ -77,6 +77,7 @@ return function(sandbox) {
         clear: function() {
         },
         setMetadata: function(node) {
+            this.node.find('.rng-module-metadataEditor-addBtn').attr('disabled', !node);
             if(!node) {
                 this.metaTable.html('');
                 return;
@@ -113,6 +114,8 @@ return function(sandbox) {
             var valueSelectView = new OpenSelectView({
                 value: row.getValue(),
                 inputTemplate: _.template('<div class="openInput rng-module-metadataEditor-metaItemValue" contentEditable="true"><%= value %></div>')({value: row.getValue() || '' }),
+                maxHeight: '300px',
+                maxWidth: '100px',
                 setInput: function(inputDOM, value) {
                     if(inputDOM.text() !== value) {
                         inputDOM.text(value);