From c930e2489f6240e3c9de1b86af65aef12fd15c75 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 18 Feb 2014 16:11:27 +0100 Subject: [PATCH] [FIX] website_blog: At one step, it says 'delete the title', but it deletes the whole block bzr revid: chm@openerp.com-20140218151127-a6471u9l0jpot6gq --- addons/website/static/src/js/website.snippets.editor.js | 2 +- addons/website_blog/static/src/js/website.tour.blog.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 453be324d56..f537f09a115 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1126,7 +1126,7 @@ }, change_cursor : function () { - var _class = this.$target.attr("class"); + var _class = this.$target.attr("class") || ""; var col = _class.match(/col-md-([0-9-]+)/i); col = col ? +col[1] : 0; 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 b6701d74634..7079c52315d 100644 --- a/addons/website_blog/static/src/js/website.tour.blog.js +++ b/addons/website_blog/static/src/js/website.tour.blog.js @@ -88,8 +88,8 @@ { element: '.oe_active .oe_snippet_remove', placement: 'top', - title: _t("Delete the Title"), - content: _t("From this toolbar you can move, duplicate or delete the selected zone. Click on the garbage can image to delete the title."), + title: _t("Delete the block"), + content: _t("From this toolbar you can move, duplicate or delete the selected zone. Click on the garbage can image to delete the block. Or click on the Title and delete it."), }, { waitNot: '.oe_active .oe_snippet_remove:visible',