summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2014-02-19 10:24:02 +0100
committerOlivier Dony <odo@openerp.com>2014-02-19 10:24:02 +0100
commit42634d2a0d9c427b6aee477787bd3a93ec88a800 (patch)
tree03939b25af96626b5f1b0a684caed2e44fc7977a /addons/website/static/src/js/website.editor.js
parent517ace3e414debcb2fd1fb7c0a3f46c431b46047 (diff)
[FIX] website rte: Select some text > Click on the link button > Start typing > The focus is still on your text, you loose what you selected
bzr revid: odo@openerp.com-20140219092402-bf8vkin5q07rv9bf
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 61e792133ca..8b27c97acb3 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -994,6 +994,7 @@
start: function () {
var sup = this._super();
this.$el.modal({backdrop: 'static'});
+ this.$('input:first').focus();
return sup;
},
save: function () {