From: Aleksander Ɓukasz Date: Tue, 23 Apr 2013 13:04:10 +0000 (+0200) Subject: Visual editor - adding missing event unbinding X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/fad4e82134c47593fe4feb1a4403f18ec757bd1c?ds=sidebyside;hp=66ee7b21c54cf1daa751661f0c0107d1586c9fc6 Visual editor - adding missing event unbinding Not having this unbind call caused second save of the node if the first one was caused by clicking the save button. Related: fb8befbb76d37a32317ef82324cecc5dd5208c08 --- diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index da69d3eb..4353848e 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -524,6 +524,7 @@ $('.accept-button', $overlay).click(function(){ save(); + $(document).unbind('click.blur-overlay'); }); $(document).bind('click.blur-overlay', function(event){