\r
view.on('change', 'select', function(e) {\r
var target = $(e.target);\r
- var attr = target.attr('class').split('-')[2].split('nodePane')[1].substr(0,3) === 'Tag' ? 'tag' : 'class';\r
+ var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'tag' : 'class';\r
sandbox.publish('nodeChanged', attr, target.val());\r
});\r
\r
return view;\r
},\r
setNode: function(node) {\r
- var tag = node.attr('wlxml-tag');\r
- var klass = node.attr('wlxml-class');\r
- view.find('.rng-module-nodePane-tagSelect').val(tag);\r
- view.find('.rng-module-nodePane-classSelect').val(klass);\r
+ view.find('.rng-module-nodePane-tagSelect').val(node.tag);\r
+ view.find('.rng-module-nodePane-classSelect').val(node.klass);\r
}\r
}\r
\r