X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/eebb24ef74a635e06c6bc8f074302996ca5936ec..3eaf5e66203b1afafc81dfb1214660b20a11739f:/modules/documentCanvas/documentCanvas.js?ds=sidebyside diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index f9a8b7a..ea44955 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -182,18 +182,18 @@ return function(sandbox) { }, highlightNode: function(node) { if(!this.gridToggled) { - node.addClass('rng-hover'); + node.addClass('rng-common-hoveredNode'); var label = node.attr('wlxml-tag'); if(node.attr('wlxml-class')) label += ' / ' + node.attr('wlxml-class'); - var tag = $('
').addClass('rng-visualEditor-nodeHoverTag').text(label); + var tag = $('
').addClass('rng-module-documentCanvas-hoveredNodeTag').text(label); node.append(tag); } }, dimNode: function(node) { if(!this.gridToggled) { - node.removeClass('rng-hover'); - node.find('.rng-visualEditor-nodeHoverTag').remove(); + node.removeClass('rng-common-hoveredNode'); + node.find('.rng-module-documentCanvas-hoveredNodeTag').remove(); } }, highlightNodeById: function(id) { @@ -219,7 +219,7 @@ return function(sandbox) { this.selectNode(node); }, toggleGrid: function(toggle) { - this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle); + this.node.find('[wlxml-tag]').toggleClass('rng-common-hoveredNode', toggle); this.gridToggled = toggle; } };