##// END OF EJS Templates
replace tabs to spaces at public/javascripts/select_list_move.js...
Toshi MARUYAMA -
r8982:1214365611fb
parent child
Show More
@@ -9,7 +9,7 function addOption(theSel, theText, theValue)
9 9
10 10 function swapOptions(theSel, index1, index2)
11 11 {
12 var text, value;
12 var text, value;
13 13 text = theSel.options[index1].text;
14 14 value = theSel.options[index1].value;
15 15 theSel.options[index1].text = theSel.options[index2].text;
@@ -57,19 +57,19 function moveOptions(theSelFrom, theSelTo)
57 57 }
58 58
59 59 function moveOptionUp(theSel) {
60 var index = theSel.selectedIndex;
61 if (index > 0) {
62 swapOptions(theSel, index-1, index);
63 theSel.selectedIndex = index-1;
64 }
60 var index = theSel.selectedIndex;
61 if (index > 0) {
62 swapOptions(theSel, index-1, index);
63 theSel.selectedIndex = index-1;
64 }
65 65 }
66 66
67 67 function moveOptionDown(theSel) {
68 var index = theSel.selectedIndex;
69 if (index < theSel.length - 1) {
70 swapOptions(theSel, index, index+1);
71 theSel.selectedIndex = index+1;
72 }
68 var index = theSel.selectedIndex;
69 if (index < theSel.length - 1) {
70 swapOptions(theSel, index, index+1);
71 theSel.selectedIndex = index+1;
72 }
73 73 }
74 74
75 75 function selectAllOptions(id)
General Comments 0
You need to be logged in to leave comments. Login now