Visual editor - adding missing event unbinding
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 23 Apr 2013 13:04:10 +0000 (15:04 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 23 Apr 2013 13:04:10 +0000 (15:04 +0200)
Not having this unbind call caused second save of the node if
the first one was caused by clicking the save button.

Related: fb8befbb76d37a32317ef82324cecc5dd5208c08

redakcja/static/js/wiki/view_editor_wysiwyg.js

index da69d3e..4353848 100644 (file)
 
                 $('.accept-button', $overlay).click(function(){
                     save();
+                    $(document).unbind('click.blur-overlay');
                 });
 
                 $(document).bind('click.blur-overlay', function(event){