From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 14:46:25 +0000 (+0200) Subject: Fix in nodePane module X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2bb0e6a7d19dc695f82373e568e6959c6b995eca?hp=601fd5decd2c36c4612487b8bfeb6df7d94a4ac2 Fix in nodePane module --- 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()); });