MDL-54765 mod_assign: Use selectedIndex for setting page selection

Set the 'selectedIndex' attribute of the page selection element instead of
the 'value' attribute since YUI is having trouble with this in IE.
This commit is contained in:
Jun Pataleta
2016-06-03 14:55:43 +08:00
parent 4ee8ef5d41
commit bb2281d53c
4 changed files with 4 additions and 4 deletions
@@ -4163,7 +4163,7 @@ EDITOR.prototype = {
drawingcanvas.setStyle('height', page.height + 'px');
// Update page select.
this.get_dialogue_element(SELECTOR.PAGESELECT).set('value', this.currentpage);
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
this.resize(); // Internally will call 'redraw', after checking the dialogue size.
},
File diff suppressed because one or more lines are too long
@@ -4163,7 +4163,7 @@ EDITOR.prototype = {
drawingcanvas.setStyle('height', page.height + 'px');
// Update page select.
this.get_dialogue_element(SELECTOR.PAGESELECT).set('value', this.currentpage);
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
this.resize(); // Internally will call 'redraw', after checking the dialogue size.
},
+1 -1
View File
@@ -1106,7 +1106,7 @@ EDITOR.prototype = {
drawingcanvas.setStyle('height', page.height + 'px');
// Update page select.
this.get_dialogue_element(SELECTOR.PAGESELECT).set('value', this.currentpage);
this.get_dialogue_element(SELECTOR.PAGESELECT).set('selectedIndex', this.currentpage);
this.resize(); // Internally will call 'redraw', after checking the dialogue size.
},