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:
+1
-1
@@ -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
File diff suppressed because one or more lines are too long
+1
-1
@@ -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
@@ -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.
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user