summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-06-19 16:23:32 +0200
committerChristophe Simonis <chs@odoo.com>2014-06-19 16:23:32 +0200
commiteef6330c55bc7d829359fbb733a1adc4c149309b (patch)
tree11dede8d58d1db5d3f2998e79b3ecd9dd0e76776 /addons/website/static/src/js/website.editor.js
parentdc4178a9624e49b6bad7dc924206b22fc23d435e (diff)
parentadf07a9490436211d16da8b1355c3bae4448a54a (diff)
[MERGE] forward port of branch saas-5 up to adf07a9
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 601d3016068..8cd78377a90 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -469,7 +469,7 @@
}
);
});
- menu.on('click', 'a[data-action!=ace]', function (event) {
+ menu.on('click', 'a[data-view-id]', function (event) {
var view_id = $(event.currentTarget).data('view-id');
return openerp.jsonRpc('/web/dataset/call_kw', 'call', {
model: 'ir.ui.view',
@@ -1516,7 +1516,7 @@
url: this.link
});
this.media.renameNode("img");
- this.media.$.attributes.src = this.link;
+ $(this.media).attr('src', this.link);
return this._super();
},
clear: function () {
@@ -2000,6 +2000,11 @@
// a/@href, ...)
_(mutations).chain()
.filter(function (m) {
+ // ignore any SVG target, these blokes are like weird mon
+ if (m.target && m.target instanceof SVGElement) {
+ return false;
+ }
+
// ignore any change related to mundane image-edit-button
if (m.target && m.target.className
&& m.target.className.indexOf('image-edit-button') !== -1) {