- Timestamp:
- 2012/12/04 20:09:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/Smarty/templates/admin/order/status.tpl
r22121 r22122 102 102 <!--{/section}--> 103 103 </table> 104 <input type="hidden" name="move[]" value="" />105 104 106 105 <p><!--{$tpl_strnavi}--></p> … … 120 119 <!-- 121 120 function fnSelectCheckSubmit(){ 122 123 121 var selectflag = 0; 124 122 var fm = document.form1; 125 123 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; 128 126 } 129 127 130 if (selectflag == 1){128 if (selectflag == 1) { 131 129 alert('<!--{t string="tpl_438"}-->'); 132 130 return false; … … 136 134 var max = fm["move[]"].length; 137 135 138 if (max) {136 if (max) { 139 137 for (i=0;i<max;i++){ 140 if(fm["move[]"][i].checked == true) {138 if(fm["move[]"][i].checked == true) { 141 139 checkflag = 1; 142 140 } 143 141 } 144 142 } else { 145 if (fm["move[]"].checked == true) {143 if (fm["move[]"].checked == true) { 146 144 checkflag = 1; 147 145 } 148 146 } 149 147 150 if (checkflag == 0){148 if (checkflag == 0){ 151 149 alert(<!--{t string="tpl_398"}-->); 152 150 return false; 153 151 } 154 152 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(); 158 156 } 159 157 }
Note: See TracChangeset
for help on using the changeset viewer.