X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/79d1f9aef5454bf4cf75ef8f41c07d6439914569..c11ad12846df3142b19a343144fe1d2a82b97569:/src/editor/modules/metadataEditor/metadataEditor.js diff --git a/src/editor/modules/metadataEditor/metadataEditor.js b/src/editor/modules/metadataEditor/metadataEditor.js index 0eace02..b9021bc 100644 --- a/src/editor/modules/metadataEditor/metadataEditor.js +++ b/src/editor/modules/metadataEditor/metadataEditor.js @@ -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('
<%= value %>
')({value: row.getValue() || '' }), + maxHeight: '300px', + maxWidth: '100px', setInput: function(inputDOM, value) { if(inputDOM.text() !== value) { inputDOM.text(value);