[IMP] web_tour: allow to change a select tag in run
This commit is contained in:
committed by
qsm-odoo
parent
ee4065e2bc
commit
b536f1bb1b
@@ -64,6 +64,12 @@ var RunningTourActionHelper = core.Class.extend({
|
||||
text = text || "Test";
|
||||
if (values.consume_event === "input") {
|
||||
values.$element.val(text).trigger("input");
|
||||
} else if (values.$element.is("select")) {
|
||||
values.$element.children("option")
|
||||
.prop("selected", false).removeProp("selected")
|
||||
.filter(function () { return $(this).val() === text; })
|
||||
.prop("selected", true);
|
||||
this._click(values);
|
||||
} else {
|
||||
values.$element.text(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user