From de554f8d7827f1bb0267f20f2613e2589a1ecc5d Mon Sep 17 00:00:00 2001 From: ddm Date: Fri, 22 Nov 2013 18:05:42 +0100 Subject: [PATCH] [IMP] Tour: publish and save blog post bzr revid: ddm@openerp.com-20131122170542-pf9rchtu3dr175xd --- .../static/src/js/website.tour.blog.js | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/addons/website_blog/static/src/js/website.tour.blog.js b/addons/website_blog/static/src/js/website.tour.blog.js index f03ba80d7ee..877fb4f3fed 100644 --- a/addons/website_blog/static/src/js/website.tour.blog.js +++ b/addons/website_blog/static/src/js/website.tour.blog.js @@ -140,19 +140,34 @@ $('#wrap [data-snippet-id=text-block] .text-center[data-snippet-id=colmd]').click(function () { setTimeout(function () { self.movetoStep('remove-text-block-title'); - }, 0); + }, 50); }); }, }, { stepId: 'remove-text-block-title', - element: 'span.icon-remove', + element: '.oe_snippet_remove:last', placement: 'top', reflex: true, title: "Delete the title", content: "Click on the cross to delete the title.", }, - + { + stepId: 'publish-post', + element: 'button.js_publish_btn', + placement: 'right', + reflex: true, + title: "Publish your blog post", + content: "Click to publish your blog post.", + }, + { + stepId: 'save-changes', + element: 'button[data-action=save]', + placement: 'right', + reflex: true, + title: "Save your modifications", + content: "Once you click on save, your post is updated.", + }, ]; return this._super(); },