X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a398f2a96740ebe6dd60559d90e74c648e7009af..58d1e96373dee3849af719bdedb3d57c51adc5c3:/modules/nodePane/nodePane.js diff --git a/modules/nodePane/nodePane.js b/modules/nodePane/nodePane.js index 57f5c17..39afbea 100644 --- a/modules/nodePane/nodePane.js +++ b/modules/nodePane/nodePane.js @@ -2,8 +2,8 @@ define([ 'libs/text!./template.html', 'libs/jquery-1.9.1.min', 'libs/underscore-min', - -], function(templateSrc, $, _) { +'modules/nodePane/metaWidget/metaWidget' +], function(templateSrc, $, _, metaWidget) { 'use strict'; @@ -27,6 +27,12 @@ return function(sandbox) { setNode: function(canvasNode) { view.find('.rng-module-nodePane-tagSelect').val(canvasNode.getTag()); view.find('.rng-module-nodePane-classSelect').val(canvasNode.getClass()); + + var widget = metaWidget.create({attrs:canvasNode.getMetaAttrs()}); + widget.on('valueChanged', function(key, value) { + sandbox.publish('nodeChanged', key, value); + }); + view.find('.metaFields').empty().append(widget.el); } };