Ignore:
Timestamp:
2013/03/09 12:29:27 (9 years ago)
Author:
Qwert
Message:

#2178 (商品編集画面でリロード時にカテゴリ選択がリセットされる (ブラウザ依存))

登録又はPOST済みカテゴリをJSONエンコードしてassignし、それを元に画面読み込み時にselectedを付与する。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r22578 r22618  
    602602            $arrForm['category_id'] = unserialize($arrForm['category_id']); 
    603603        } 
     604        $this->tpl_json_category_id = SC_Utils_Ex::jsonEncode($arrForm['category_id']); 
    604605        if ($arrForm['status'] == '') { 
    605606            $arrForm['status'] = DEFAULT_PRODUCT_DISP; 
     
    986987    function lfSetOnloadJavaScript_InputPage($anchor_hash = '') 
    987988    { 
    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; 
    989990    } 
    990991 
Note: See TracChangeset for help on using the changeset viewer.