From 2bb0e6a7d19dc695f82373e568e6959c6b995eca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 6 Jun 2013 16:46:25 +0200 Subject: [PATCH 1/1] Fix in nodePane module --- modules/nodePane/nodePane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }); -- 2.20.1