X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..0fc9c9339c521db96bdd3043e64d8610d51a0e13:/modules/nodePane/nodePane.js diff --git a/modules/nodePane/nodePane.js b/modules/nodePane/nodePane.js index 47777b7..fc8284f 100644 --- a/modules/nodePane/nodePane.js +++ b/modules/nodePane/nodePane.js @@ -11,7 +11,7 @@ return function(sandbox) { view.on('change', 'select', function(e) { var target = $(e.target); - var attr = target.attr('class').split('-')[2].split('nodePane')[1].substr(0,3) === 'Tag' ? 'tag' : 'class'; + var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'tag' : 'class'; sandbox.publish('nodeChanged', attr, target.val()); });