diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-05 04:14:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-05 04:14:51 +0000 |
commit | 1214365611fb5e0af45851d104778b760c006919 (patch) | |
tree | d612707050031618e3687924ac4cceb062ff3c05 /public | |
parent | 12ad36f474be90ff5e887eff94d9576073390fae (diff) | |
download | redmine-1214365611fb5e0af45851d104778b760c006919.tar.gz redmine-1214365611fb5e0af45851d104778b760c006919.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/select_list_move.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/public/javascripts/select_list_move.js b/public/javascripts/select_list_move.js index 5ad793a51..c5e5db461 100644 --- a/public/javascripts/select_list_move.js +++ b/public/javascripts/select_list_move.js @@ -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) |