summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-05-05 18:48:34 +0200
committerChristophe Simonis <chs@odoo.com>2015-05-05 18:48:34 +0200
commit22604968793a7cc12c8fcf89411ba5b79c0642b3 (patch)
tree7332814024d0a8f872e726b4f907020cc3a6a341 /addons/website/static/src/js
parent28b5d0da0d05b2f4cd68ffbd39288f9f01c8f57f (diff)
parenta939a272efa7cdd047e79a0a6da361e94ca93d4f (diff)
[MERGE] forward port of branch 8.0 up to a939a27
Diffstat (limited to 'addons/website/static/src/js')
-rw-r--r--addons/website/static/src/js/website.editor.js6
-rw-r--r--addons/website/static/src/js/website.js5
2 files changed, 11 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 21dfc9c61d3..12dceabac8f 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -1425,6 +1425,12 @@ define(['summernote/summernote'], function () {
close: function () {
this.$el.modal('hide');
},
+ destroy: function () {
+ this.$el.modal('hide').remove();
+ if($(".modal.in").length>0){
+ $('body').addClass('modal-open');
+ }
+ },
});
website.editor.LinkDialog = website.editor.Dialog.extend({
diff --git a/addons/website/static/src/js/website.js b/addons/website/static/src/js/website.js
index a4fc30890a7..3869986e48a 100644
--- a/addons/website/static/src/js/website.js
+++ b/addons/website/static/src/js/website.js
@@ -395,5 +395,10 @@
$('[data-target="#oe_applications"]').attr("data-target", "#oe_applications_collapse");
});
+ openerp.Tour.autoRunning = false;
+ website.ready().then(function () {
+ setTimeout(openerp.Tour.running,0);
+ });
+
return website;
})();