From 1214365611fb5e0af45851d104778b760c006919 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 5 Mar 2012 04:14:51 +0000 Subject: [PATCH] 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 --- public/javascripts/select_list_move.js | 22 +++++++++++----------- 1 file 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)