From fad4e82134c47593fe4feb1a4403f18ec757bd1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 23 Apr 2013 15:04:10 +0200 Subject: [PATCH] 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 --- redakcja/static/js/wiki/view_editor_wysiwyg.js | 1 + 1 file changed, 1 insertion(+) 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){ -- 2.20.1