(trunk web) IE doesn't like to set the innerHTML of selects, so do this differently. Should fix #2652
This commit is contained in:
parent
4b3b5dcd8a
commit
4530ffe5ec
|
@ -317,16 +317,20 @@ Transmission.prototype =
|
||||||
|
|
||||||
|
|
||||||
initTurtleDropDowns: function() {
|
initTurtleDropDowns: function() {
|
||||||
var i, out, hour, mins;
|
var i, out, hour, mins, start, end, value, content;
|
||||||
// Build the list of times
|
// Build the list of times
|
||||||
out = "";
|
out = "";
|
||||||
|
start = $('#turtle_start_time')[0];
|
||||||
|
end = $('#turtle_end_time')[0];
|
||||||
for (i = 0; i < 24 * 4; i++) {
|
for (i = 0; i < 24 * 4; i++) {
|
||||||
hour = parseInt(i / 4);
|
hour = parseInt(i / 4);
|
||||||
mins = ((i % 4) * 15);
|
mins = ((i % 4) * 15);
|
||||||
out += "<option value='" + (i * 15) + "'>" + hour + ":" + (mins == 0 ? "00" : mins) + "</option>";
|
|
||||||
|
value = (i * 15);
|
||||||
|
content = hour + ":" + (mins == 0 ? "00" : mins);
|
||||||
|
start.options[i] = new Option(content, value);
|
||||||
|
end.options[i] = new Option(content, value);
|
||||||
}
|
}
|
||||||
setInnerHTML( $('#turtle_start_time')[0], out );
|
|
||||||
setInnerHTML( $('#turtle_end_time')[0], out );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/*--------------------------------------------
|
/*--------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue