X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/84eba72af147a175fb93b7305c1d42b0a4987a8c..4a10da821d96b8e462cc9db5e74e2507445eee76:/modules/metadataEditor/metadataEditor.js?ds=sidebyside diff --git a/modules/metadataEditor/metadataEditor.js b/modules/metadataEditor/metadataEditor.js index 79302bb..12578ba 100644 --- a/modules/metadataEditor/metadataEditor.js +++ b/modules/metadataEditor/metadataEditor.js @@ -35,7 +35,7 @@ return function(sandbox) { metaTable.find('.rng-module-metadataEditor-metaItemValue').focus(); } else { var input = $(''); - input.appendTo('body').focus() + input.appendTo('body').focus(); view.node.find('.rng-module-metadataEditor-addBtn').focus(); input.remove(); } @@ -47,7 +47,7 @@ return function(sandbox) { var onKeyUp = function(e) { if(e.which !== 13) sandbox.publish('metadataChanged', view.getMetadata()); - } + }; this.metaTable.on('keyup', '[contenteditable]', _.throttle(onKeyUp, 500)); }, getMetadata: function() { @@ -73,7 +73,7 @@ return function(sandbox) { newRow.appendTo(this.metaTable); return newRow; } - } + }; view.setup(); @@ -101,7 +101,7 @@ return function(sandbox) { var section = toret.find('section'); section = section.length ? $(section[0]) : null; if(section) { - section.prepend(meta) + section.prepend(meta); } } else { metadata.replaceWith(meta); @@ -110,6 +110,6 @@ return function(sandbox) { } }; -} +}; }); \ No newline at end of file