Commit 110a2e29 authored by David Johnson's avatar David Johnson
Browse files

Hacks to dynamically reset the bgcolor prop of <option>s.

parent ece9d027
......@@ -159,6 +159,12 @@ dynselect.swapOptions = function(sobj,i,j) {
e2 = new Option(sobj.options[j].text,sobj.options[j].value,
// Hacks to fix background color of <option> elms when they get swapped.
// Other style properties require similar hacks, I bet. = sobj.options[i].style.backgroundColor; = sobj.options[j].style.backgroundColor;
e1s = sobj.options[i].selected;
e2s = sobj.options[j].selected;
sobj.options[j] = e1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment