[FIX] website tour
authorchm@openerp.com <>
Thu, 6 Mar 2014 16:11:04 +0000 (17:11 +0100)
committerchm@openerp.com <>
Thu, 6 Mar 2014 16:11:04 +0000 (17:11 +0100)
bzr revid: chm@openerp.com-20140306161104-39dmtb9mw1crw2sd

addons/website/static/src/js/website.tour.banner.js
addons/website/static/src/js/website.tour.js
addons/website/static/src/js/website.tour.test.admin.js
addons/website/views/snippets.xml
addons/website_blog/static/src/js/website.tour.blog.js
addons/website_event/static/src/js/website.tour.event.js
addons/website_sale/static/src/js/website.tour.shop.js

index 97568e3..ff3ed03 100644 (file)
@@ -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."),
                 },
                 {
                     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") },
                 },
                 {
index 2416cb5..33fe11f 100644 (file)
@@ -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';
             }
 
         }
index 787f05b..01f4448 100644 (file)
@@ -57,7 +57,7 @@
                 },
                 {
                     title:     'add snippets',
-                    snippet:   'carousel',
+                    snippet:   '#snippet_structure .oe_snippet:first',
                 },
                 {
                     title:     'try to save',
index c2c9f9a..53e2d87 100644 (file)
     </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>
 
         </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>
 
 
index e76e793..3470e2e 100644 (file)
@@ -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."),
index a9e40a5..ef01339 100644 (file)
@@ -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."),
index 24dd5fd..adb4a9e 100644 (file)
                     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."),