Changeset 21032
- Timestamp:
- 2011/07/13 19:28:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/Smarty/templates/admin/products/product_class.tpl
r20970 r21032 25 25 $(function() { 26 26 // 無制限チェックボックスの初期化 27 $('input[id^= stock_unlimited_]').each(function() {28 var index = $(this).attr('id').replace(/^ stock_unlimited_/ig, '');27 $('input[id^=chk_stock_unlimited_]').each(function() { 28 var index = $(this).attr('id').replace(/^chk_stock_unlimited_/ig, ''); 29 29 var checked = $(this).attr('checked'); 30 30 … … 37 37 38 38 // 無制限チェックボックス 39 $('input[id^= stock_unlimited_]').change(function() {40 var index = $(this).attr('id').replace(/^ stock_unlimited_/ig, '');39 $('input[id^=chk_stock_unlimited_]').change(function() { 40 var index = $(this).attr('id').replace(/^chk_stock_unlimited_/ig, ''); 41 41 var checked = $(this).attr('checked'); 42 42 … … 63 63 $('input[id^=stock_]').val(stock); 64 64 65 var stock_unlimited = $('# stock_unlimited_0').attr('checked');66 $('input[id^= stock_unlimited_]').each(function() {65 var stock_unlimited = $('#chk_stock_unlimited_0').attr('checked'); 66 $('input[id^=chk_stock_unlimited_]').each(function() { 67 67 var checked = stock_unlimited; 68 var index = $(this).attr('id').replace(/^ stock_unlimited_/ig, '');68 var index = $(this).attr('id').replace(/^chk_stock_unlimited_/ig, ''); 69 69 $(this).attr('checked', checked); 70 70 if (checked) { … … 255 255 <span class="attention"><!--{$arrErr[$key][$index]}--></span> 256 256 <!--{/if}--> 257 <input type="checkbox" name="<!--{$key}-->[<!--{$index}-->]" value="1" <!--{if $arrForm[$key].value[$index] == "1"}-->checked="checked"<!--{/if}--> id=" <!--{$key}-->_<!--{$index}-->" /><label for="<!--{$key}-->_<!--{$index}-->">無制限</label>257 <input type="checkbox" name="<!--{$key}-->[<!--{$index}-->]" value="1" <!--{if $arrForm[$key].value[$index] == "1"}-->checked="checked"<!--{/if}--> id="chk_<!--{$key}-->_<!--{$index}-->" /><label for="chk_<!--{$key}-->_<!--{$index}-->">無制限</label> 258 258 </td> 259 259 <td class="center">
Note: See TracChangeset
for help on using the changeset viewer.