Skip to content

Commit

Permalink
Merge branch 'MDL-40470-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
Conflicts:
	lib/yui/build/moodle-core-formautosubmit/moodle-core-formautosubmit-min.js
  • Loading branch information
Damyon Wiese committed Oct 29, 2013
2 parents afb5f28 + dd8e6cd commit 5fb9161
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Y.extend(FORMAUTOSUBMIT, Y.Base, {
startindex = select.getData('startindex');
currentindex = select.get('selectedIndex');

previousindex = select.getAttribute('data-previousindex');
select.setAttribute('data-previousindex', currentindex);
previousindex = parseInt(select.getData('previousindex'), 10);
select.setData('previousindex', currentindex);
if (!previousindex) {
previousindex = startindex;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Y.extend(FORMAUTOSUBMIT, Y.Base, {
startindex = select.getData('startindex');
currentindex = select.get('selectedIndex');

previousindex = select.getAttribute('data-previousindex');
select.setAttribute('data-previousindex', currentindex);
previousindex = parseInt(select.getData('previousindex'), 10);
select.setData('previousindex', currentindex);
if (!previousindex) {
previousindex = startindex;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/yui/src/formautosubmit/js/formautosubmit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Y.extend(FORMAUTOSUBMIT, Y.Base, {
startindex = select.getData('startindex');
currentindex = select.get('selectedIndex');

previousindex = select.getAttribute('data-previousindex');
select.setAttribute('data-previousindex', currentindex);
previousindex = parseInt(select.getData('previousindex'), 10);
select.setData('previousindex', currentindex);
if (!previousindex) {
previousindex = startindex;
}
Expand Down

0 comments on commit 5fb9161

Please sign in to comment.