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:
Toshi MARUYAMA 2012-03-05 04:14:51 +00:00
parent 12ad36f474
commit 1214365611
1 changed files with 11 additions and 11 deletions

View File

@ -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)