summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 00:44:04 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 00:44:04 +0100
commitc54a3cb4ff0fdadc7f708b2b90ca919c9e784301 (patch)
tree354edb77615d45911fc2090242bdaa9894d3e509 /static
parentcc4922cca2affb25b2e387034a0981a0a721a3c8 (diff)
Wiki page editor: Do not lose editor focus when clicking a toolbar button.
Diffstat (limited to 'static')
-rw-r--r--static/js/wiki.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/static/js/wiki.js b/static/js/wiki.js
index a208f36..4b87549 100644
--- a/static/js/wiki.js
+++ b/static/js/wiki.js
@@ -59,11 +59,19 @@ jQuery(function ($) {
Aloha.ready(function() {
var $$ = Aloha.jQuery;
- $('#wiki-page-content').on('blur', function() {
+
+ $('html').click(function() {
mulk.savePage();
$$('#wiki-page-content').mahalo();
});
- $('#wiki-page-content').dblclick(function() {
+ $('#wiki-page-content').click(function(event) {
+ event.stopPropagation();
+ });
+ $('.aloha-floatingmenu').click(function(event) {
+ event.stopPropagation();
+ });
+
+ $('#wiki-page-content').click(function() {
$$('#wiki-page-content').aloha();
});
});