editor: actions implementation
[fnpeditor.git] / src / editor / modules / metadataEditor / metadataEditor.js
index 118571e..b9021bc 100644 (file)
@@ -77,6 +77,7 @@ return function(sandbox) {
         clear: function() {
         },
         setMetadata: function(node) {
         clear: function() {
         },
         setMetadata: function(node) {
+            this.node.find('.rng-module-metadataEditor-addBtn').attr('disabled', !node);
             if(!node) {
                 this.metaTable.html('');
                 return;
             if(!node) {
                 this.metaTable.html('');
                 return;