replace tabs to spaces at public/javascripts/select_list_move.js
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9102 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
12ad36f474
commit
1214365611
|
@ -9,7 +9,7 @@ function addOption(theSel, theText, theValue)
|
|||
|
||||
function swapOptions(theSel, index1, index2)
|
||||
{
|
||||
var text, value;
|
||||
var text, value;
|
||||
text = theSel.options[index1].text;
|
||||
value = theSel.options[index1].value;
|
||||
theSel.options[index1].text = theSel.options[index2].text;
|
||||
|
@ -57,19 +57,19 @@ function moveOptions(theSelFrom, theSelTo)
|
|||
}
|
||||
|
||||
function moveOptionUp(theSel) {
|
||||
var index = theSel.selectedIndex;
|
||||
if (index > 0) {
|
||||
swapOptions(theSel, index-1, index);
|
||||
theSel.selectedIndex = index-1;
|
||||
}
|
||||
var index = theSel.selectedIndex;
|
||||
if (index > 0) {
|
||||
swapOptions(theSel, index-1, index);
|
||||
theSel.selectedIndex = index-1;
|
||||
}
|
||||
}
|
||||
|
||||
function moveOptionDown(theSel) {
|
||||
var index = theSel.selectedIndex;
|
||||
if (index < theSel.length - 1) {
|
||||
swapOptions(theSel, index, index+1);
|
||||
theSel.selectedIndex = index+1;
|
||||
}
|
||||
var index = theSel.selectedIndex;
|
||||
if (index < theSel.length - 1) {
|
||||
swapOptions(theSel, index, index+1);
|
||||
theSel.selectedIndex = index+1;
|
||||
}
|
||||
}
|
||||
|
||||
function selectAllOptions(id)
|
||||
|
|
Loading…
Reference in New Issue