X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1fe8bb015648709853a4e14584ab1b3059b9ba1d..4c64934185c2bd340c01de48882943af66c563f0:/modules/visualEditor.js diff --git a/modules/visualEditor.js b/modules/visualEditor.js index 7f7bc2e..dfa8335 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -71,9 +71,6 @@ rng.modules.visualEditor = function(sandbox) { var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { - if(mutation.addedNodes.length > 0) { - console.log(mutation.addedNodes); - } _.each(mutation.addedNodes, function(node) { node = $(node); node.parent().find('[wlxml-tag]').each(function() { @@ -259,12 +256,7 @@ rng.modules.visualEditor = function(sandbox) { mediator.getCurrentNode().attr('wlxml-'+attr, target.val()); isDirty = true; }); - - view.node.on('change', '.rng-visualEditor-editPaneSelectionForm select', function(e) { - var target = $(e.target); - mediator.wrapWithNodeRequest(target.val(), null); - }); - + view.node.on('click', '.rng-visualEditor-editPaneSurrouding a', function(e) { var target = $(e.target); mediator.nodeDimmedById(target.attr('data-id'));