[FIX] Modify blog tour before automation
bzr revid: ddm@openerp.com-20131210154500-4k03t4yag7qz0p0v
This commit is contained in:
parent
bfc9435830
commit
8c91a8831e
|
@ -288,6 +288,13 @@
|
|||
var $element = $(step.element);
|
||||
if (step.snippet && step.trigger === 'drag') {
|
||||
TestConsole.dragAndDropSnippet(step.snippet);
|
||||
} else if (step.trigger.id === 'change') {
|
||||
var currentValue = $element.val();
|
||||
var options = $element[0].options;
|
||||
var newValue = _.find(options, function (option) {
|
||||
return option.value !== currentValue;
|
||||
}).value;
|
||||
$element.val(newValue).trigger($.Event("change"));
|
||||
} else {
|
||||
$element.trigger($.Event("click", { srcElement: $element }));
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
title: "Which Blog?",
|
||||
content: "Blog posts are organized in multiple categories (news, job offers, events, etc). Select <em>News</em> and click <em>Continue</em>.",
|
||||
trigger: {
|
||||
emitter: '.modal select',
|
||||
id: 'change',
|
||||
},
|
||||
},
|
||||
|
@ -114,11 +113,13 @@
|
|||
placement: 'top',
|
||||
title: "Edit an Area",
|
||||
content: "Select any area of the page to modify it. Click on this subtitle.",
|
||||
trigger: 'click',
|
||||
trigger: {
|
||||
id: 'snippet-activated',
|
||||
}
|
||||
},
|
||||
{
|
||||
stepId: 'remove-text-block-title',
|
||||
element: '.oe_snippet_remove:last',
|
||||
element: '.oe_active .oe_snippet_remove',
|
||||
placement: 'top',
|
||||
title: "Delete the Title",
|
||||
content: "From this toolbar you can move, duplicate or delete the selected zone. Click on the cross to delete the title.",
|
||||
|
|
Loading…
Reference in New Issue