[FIX] website tour
bzr revid: chm@openerp.com-20140306161104-39dmtb9mw1crw2sd
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'carousel',
|
||||
snippet: '#snippet_structure .oe_snippet:first',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a Banner"),
|
||||
content: _t("Drag the Banner block and drop it in your page."),
|
||||
@@ -47,14 +47,14 @@
|
||||
},
|
||||
{
|
||||
waitFor: '.oe_overlay_options .oe_options:visible',
|
||||
element: '#wrap .carousel:first .carousel-caption',
|
||||
element: '#wrap .carousel:first .carousel-caption > div',
|
||||
placement: 'top',
|
||||
title: _("Customize banner's text"),
|
||||
content: _("Click in the text and start editing it."),
|
||||
title: _t("Customize banner's text"),
|
||||
content: _t("Click in the text and start editing it."),
|
||||
popover: { next: _t("Continue") },
|
||||
},
|
||||
{
|
||||
element: '.oe_overlay_options .oe_options',
|
||||
element: '.oe_overlay_options .oe_options:visible',
|
||||
placement: 'left',
|
||||
title: _t("Customize the banner"),
|
||||
content: _t("Customize any block through this menu. Try to change the background of the banner."),
|
||||
@@ -69,7 +69,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'features',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(6)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop This Block"),
|
||||
content: _t("Drag the <em>'Features'</em> block and drop it below the banner."),
|
||||
@@ -85,8 +85,8 @@
|
||||
},
|
||||
{
|
||||
waitFor: 'button[data-action=edit]:visible',
|
||||
title: _("Good Job!"),
|
||||
content: _("Well done, you created your homepage."),
|
||||
title: _t("Good Job!"),
|
||||
content: _t("Well done, you created your homepage."),
|
||||
popover: { next: _t("Continue") },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -205,7 +205,7 @@ website.Tour = openerp.Class.extend({
|
||||
|
||||
if (!step.element) step.orphan = true;
|
||||
if (step.snippet) {
|
||||
step.element = '#oe_snippets div.oe_snippet[data-snippet-id="'+step.snippet+'"] .oe_snippet_thumbnail';
|
||||
step.element = '#oe_snippets '+step.snippet+' .oe_snippet_thumbnail';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
},
|
||||
{
|
||||
title: 'add snippets',
|
||||
snippet: 'carousel',
|
||||
snippet: '#snippet_structure .oe_snippet:first',
|
||||
},
|
||||
{
|
||||
title: 'try to save',
|
||||
|
||||
@@ -947,8 +947,8 @@
|
||||
</div>
|
||||
|
||||
<div data-snippet-option-id='content'
|
||||
data-selector="p, h1, h2, h3, blockquote, .well, .panel"
|
||||
data-selector-siblings="p, h1, h2, h3, blockquote, .well, .panel"
|
||||
data-selector="blockquote, .well, .panel"
|
||||
data-selector-siblings="blockquote, .well, .panel"
|
||||
data-selector-children=".content">
|
||||
</div>
|
||||
|
||||
@@ -967,12 +967,6 @@
|
||||
</li>
|
||||
</div>
|
||||
|
||||
<div data-snippet-option-id='content'
|
||||
data-selector="p, h1, h2, h3, blockquote, .well, .panel"
|
||||
data-selector-siblings="p, h1, h2, h3, blockquote, .well, .panel"
|
||||
data-selector-children=".content">
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'image-text',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(2)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a Block"),
|
||||
content: _t("Drag this block and drop it in your page."),
|
||||
@@ -79,7 +79,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'text-block',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(4)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a block"),
|
||||
content: _t("Drag this block and drop it below the image block."),
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'image-text',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(2)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a block"),
|
||||
content: _t("Drag the 'Image-Text' block and drop it in your page."),
|
||||
@@ -80,7 +80,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'text-block',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(4)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a block"),
|
||||
content: _t("Drag the 'Text Block' in your event page."),
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
popover: { fixed: true },
|
||||
},
|
||||
{
|
||||
snippet: 'big-picture',
|
||||
snippet: '#snippet_structure .oe_snippet:eq(7)',
|
||||
placement: 'bottom',
|
||||
title: _t("Drag & Drop a block"),
|
||||
content: _t("Drag the 'Big Picture' block and drop it in your page."),
|
||||
|
||||
Reference in New Issue
Block a user