[FIX] website: customize menu stay empty if it's open to quick. Don't throw an exception when the tour have an error: log error and close tour.
This commit is contained in:
parent
78f87dce34
commit
ca02d8820a
|
@ -335,7 +335,7 @@ var Tour = {
|
|||
Tour.reset();
|
||||
if (state.mode === "test") {
|
||||
console.log(message);
|
||||
throw new Error(message);
|
||||
Tour.endTour();
|
||||
}
|
||||
},
|
||||
lists: function () {
|
||||
|
|
|
@ -225,8 +225,8 @@
|
|||
},
|
||||
});
|
||||
|
||||
website.ready().done(function() {
|
||||
var content = new website.EditorBarContent()
|
||||
$(document).ready(function() {
|
||||
var content = new website.EditorBarContent();
|
||||
content.setElement($('.oe_content_menu'));
|
||||
content.start();
|
||||
});
|
||||
|
|
|
@ -754,7 +754,7 @@
|
|||
},
|
||||
});
|
||||
|
||||
website.ready().done(function() {
|
||||
$(document).ready(function() {
|
||||
var editorBarCustomize = new website.EditorBarCustomize();
|
||||
editorBarCustomize.setElement($('li[id=customize-menu]'));
|
||||
editorBarCustomize.start();
|
||||
|
|
Loading…
Reference in New Issue