[FIX] tour.js: remove synchro between selected property and attribute

This line was previously used to allow attribute selectors to match the
`selected` property, by changing the attribute each time the property
was changed. Now it doesn't make sense since rev c611846 introduced
property selectors + it seems to mess with phantomjs, as the test does
not pass in phantomjs environment but passes ok in a "real" webkit browser.
This commit is contained in:
Simon Lejeune
2014-12-19 17:49:12 +01:00
parent f017a9fe2b
commit a7f869e51f
-1
View File
@@ -586,7 +586,6 @@ var Tour = {
if ($element.is("input") ) {
$element.val(step.sampleText);
} if ($element.is("select")) {
$element.find("[value='"+step.sampleText+"'], option:contains('"+step.sampleText+"')").attr("selected", true);
$element.val(step.sampleText);
} else {
$element.html(step.sampleText);