+ var statusBarView = {\r
+ node: view.node.find('#rng-visualEditor-statusbar'),\r
+ setup: function() {\r
+ var view = this;\r
+ view.node.on('mouseenter', 'a', function(e) {\r
+ var target = $(e.target);\r
+ mediator.nodeHighlightedById(target.attr('data-id')); \r
+ });\r
+ view.node.on('mouseleave', 'a', function(e) {\r
+ var target = $(e.target);\r
+ mediator.nodeDimmedById(target.attr('data-id')); \r
+ });\r
+ view.node.on('click', 'a', function(e) {\r
+ e.preventDefault();\r
+ mediator.nodeSelectedById($(e.target).attr('data-id'));\r
+ });\r
+ },\r
+ \r
+ showNode: function(node) {\r
+ this.node.empty();\r
+ this.node.html(sandbox.getTemplate('statusBarNodeDisplay')({node: node, parents: node.parents('[wlxml-tag]')}));\r
+ //node.parents('[wlxml-tag]')\r
+ },\r
+ \r
+ highlightNode: function(id) {\r
+ this.node.find('a[data-id="'+id+'"]').addClass('rng-hover');\r
+ },\r
+ dimNode: function(id) {\r
+ this.node.find('a[data-id="' +id+'"]').removeClass('rng-hover');\r
+ }\r
+ }\r
+ \r