[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:
Christophe Matthieu 2014-07-02 13:54:57 +02:00
parent 78f87dce34
commit ca02d8820a
3 changed files with 4 additions and 4 deletions

View File

@ -335,7 +335,7 @@ var Tour = {
Tour.reset();
if (state.mode === "test") {
console.log(message);
throw new Error(message);
Tour.endTour();
}
},
lists: function () {

View File

@ -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();
});

View File

@ -754,7 +754,7 @@
},
});
website.ready().done(function() {
$(document).ready(function() {
var editorBarCustomize = new website.EditorBarCustomize();
editorBarCustomize.setElement($('li[id=customize-menu]'));
editorBarCustomize.start();