Ignore:
Timestamp:
2012/12/01 17:15:33 (11 years ago)
Author:
Seasoft
Message:

#1973 (対応状況管理画面 SC_Helper_Purchase#sfUpdateOrderStatus の第1引数を空文字で呼んでいる)
#1903 (無駄な処理を改善する)
#1905 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/admin/order/status.tpl

    r21867 r22114  
    102102            <!--{/section}--> 
    103103        </table> 
    104         <input type="hidden" name="move[]" value="" /> 
    105104 
    106105        <p><!--{$tpl_strnavi}--></p> 
     
    120119<!-- 
    121120function fnSelectCheckSubmit(){ 
    122  
    123121    var selectflag = 0; 
    124122    var fm = document.form1; 
    125123 
    126     if(fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){ 
    127     selectflag = 1; 
     124    if (fm.change_status.options[document.form1.change_status.selectedIndex].value == "") { 
     125        selectflag = 1; 
    128126    } 
    129127 
    130     if(selectflag == 1){ 
     128    if (selectflag == 1) { 
    131129        alert('セレクトボックスが選択されていません'); 
    132130        return false; 
     
    136134    var max = fm["move[]"].length; 
    137135 
    138     if(max) { 
     136    if (max) { 
    139137        for (i=0;i<max;i++){ 
    140             if(fm["move[]"][i].checked == true){ 
     138            if(fm["move[]"][i].checked == true) { 
    141139                checkflag = 1; 
    142140            } 
    143141        } 
    144142    } else { 
    145         if(fm["move[]"].checked == true) { 
     143        if (fm["move[]"].checked == true) { 
    146144            checkflag = 1; 
    147145        } 
    148146    } 
    149147 
    150     if(checkflag == 0){ 
     148    if (checkflag == 0){ 
    151149        alert('チェックボックスが選択されていません'); 
    152150        return false; 
    153151    } 
    154152 
    155     if(selectflag == 0 && checkflag == 1){ 
    156     document.form1.mode.value = 'update'; 
    157     document.form1.submit(); 
     153    if (selectflag == 0 && checkflag == 1) { 
     154        document.form1.mode.value = 'update'; 
     155        document.form1.submit(); 
    158156    } 
    159157} 
Note: See TracChangeset for help on using the changeset viewer.