MDL-40470 JavaScript: Correct issue when checking select change in Firefox
This commit is contained in:
+2
-2
@@ -66,8 +66,8 @@ YUI.add('moodle-core-formautosubmit',
|
||||
var startindex = select.getData('startindex');
|
||||
var currentindex = select.get('selectedIndex');
|
||||
|
||||
var previousindex = select.getAttribute('data-previousindex');
|
||||
select.setAttribute('data-previousindex', currentindex);
|
||||
var previousindex = parseInt(select.getData('previousindex'), 10);
|
||||
select.setData('previousindex', currentindex);
|
||||
if (!previousindex) {
|
||||
previousindex = startindex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user