Skip to content

Commit

Permalink
MDL-40470 JavaScript: Correct issue when checking select change in Fi…
Browse files Browse the repository at this point in the history
…refox
  • Loading branch information
andrewnicols committed Oct 29, 2013
1 parent 9844660 commit 3bdbe1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/yui/formautosubmit/formautosubmit.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3bdbe1b

Please sign in to comment.