Changeset 22618
- Timestamp:
- 2013/03/09 12:29:27 (11 years ago)
- Location:
- branches/version-2_13-dev/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/Smarty/templates/admin/products/product.tpl
r22571 r22618 31 31 } else { 32 32 obj.style.display = 'none'; 33 } 34 } 35 36 // セレクトボックスのリストを初期化 37 // ※キャッシュ対策 38 // (移動元セレクトボックス) 39 function fnInitSelect(select) { 40 var selectedOptions = <!--{$tpl_json_category_id}-->; 41 $('#' + select + ' option').attr('selected', false); 42 for(var i=0; i<selectedOptions.length; i++){ 43 $('#' + select + ' option[value="' + selectedOptions[i] + '"]') 44 .attr('selected', 'selected'); 33 45 } 34 46 } -
branches/version-2_13-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
r22578 r22618 602 602 $arrForm['category_id'] = unserialize($arrForm['category_id']); 603 603 } 604 $this->tpl_json_category_id = SC_Utils_Ex::jsonEncode($arrForm['category_id']); 604 605 if ($arrForm['status'] == '') { 605 606 $arrForm['status'] = DEFAULT_PRODUCT_DISP; … … 986 987 function lfSetOnloadJavaScript_InputPage($anchor_hash = '') 987 988 { 988 return "fnCheckStockLimit('" . DISABLED_RGB . "'); fnMoveSelect('category_id_unselect', 'category_id');" . $anchor_hash;989 return "fnCheckStockLimit('" . DISABLED_RGB . "');fnInitSelect('category_id_unselect'); fnMoveSelect('category_id_unselect', 'category_id');" . $anchor_hash; 989 990 } 990 991
Note: See TracChangeset
for help on using the changeset viewer.