remove trailing white-spaces from public/javascripts/select_list_move.js

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9103 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-03-05 04:15:15 +00:00
parent 1214365611
commit 2f1d6cd94d
1 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ function swapOptions(theSel, index1, index2)
} }
function deleteOption(theSel, theIndex) function deleteOption(theSel, theIndex)
{ {
var selLength = theSel.length; var selLength = theSel.length;
if(selLength>0) if(selLength>0)
{ {
@ -29,14 +29,14 @@ function deleteOption(theSel, theIndex)
function moveOptions(theSelFrom, theSelTo) function moveOptions(theSelFrom, theSelTo)
{ {
var selLength = theSelFrom.length; var selLength = theSelFrom.length;
var selectedText = new Array(); var selectedText = new Array();
var selectedValues = new Array(); var selectedValues = new Array();
var selectedCount = 0; var selectedCount = 0;
var i; var i;
for(i=selLength-1; i>=0; i--) for(i=selLength-1; i>=0; i--)
{ {
if(theSelFrom.options[i].selected) if(theSelFrom.options[i].selected)
@ -47,12 +47,12 @@ function moveOptions(theSelFrom, theSelTo)
selectedCount++; selectedCount++;
} }
} }
for(i=selectedCount-1; i>=0; i--) for(i=selectedCount-1; i>=0; i--)
{ {
addOption(theSelTo, selectedText[i], selectedValues[i]); addOption(theSelTo, selectedText[i], selectedValues[i]);
} }
if(NS4) history.go(0); if(NS4) history.go(0);
} }