summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2014-02-20 17:38:15 +0100
committerChristophe Simonis <chs@openerp.com>2014-02-20 17:38:15 +0100
commit4b72678bc74906e552ebc8cace7161901571d2c1 (patch)
treed4965fd90f45af167c6a34eec3caad111a309f12 /addons/website/static/src/js/website.editor.js
parent65db3c635eea5324676c8f85d13e0058d66ce1b9 (diff)
parentd5106a4d34a9b7c52a1ecad7c65331f1fda2e231 (diff)
[MERGE] forward port of branch saas-2 up to revid 9195 chs@openerp.com-20140220154517-6y531n1mqtnfnsmr
bzr revid: chs@openerp.com-20140220163815-69sza1kclnh5mavs
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 7e867dca685..dc82c0c17b9 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 () {
@@ -1033,10 +1034,13 @@
},
start: function () {
var self = this;
+ var last;
this.$('#link-page').select2({
minimumInputLength: 1,
placeholder: _t("New or existing page"),
query: function (q) {
+ if (q.term == last) return;
+ last = q.term;
$.when(
self.page_exists(q.term),
self.fetch_pages(q.term)
@@ -1667,6 +1671,8 @@
}
switch(m.type) {
case 'attributes': // ignore .cke_focus being added or removed
+ // ignore id modification
+ if (m.attributeName === 'id') { return false; }
// if attribute is not a class, can't be .cke_focus change
if (m.attributeName !== 'class') { return true; }