X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/79d1f9aef5454bf4cf75ef8f41c07d6439914569..9831076c8f7385dffb533e0327cc7dd7c9f1ef92:/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);