Ignore:
Timestamp:
2013/08/15 08:46:23 (13 years ago)
Author:
pineray
Message:

#2342 JavaScript?のグローバルな宣言を減らす
商品関連.

Location:
branches/version-2_13-dev/data/Smarty/templates
Files:
4 edited

Legend:

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

    r23063 r23065  
    6060 
    6161        if(!class1_id){ 
    62             err_text = productsClassCategories[product_id]['__unselected2']['#0']['stock_find'] ? '' : '只今品切れ中です'; 
     62            err_text = eccube.productsClassCategories[product_id]['__unselected2']['#0']['stock_find'] ? '' : '只今品切れ中です'; 
    6363        }else if(class1_id && !class2_id){ 
    64             err_text = productsClassCategories[product_id][class1_id]['#0']['stock_find'] ? '' : '只今品切れ中です'; 
     64            err_text = eccube.productsClassCategories[product_id][class1_id]['#0']['stock_find'] ? '' : '只今品切れ中です'; 
    6565        }else{ 
    66             err_text = productsClassCategories[product_id][class1_id]['#' + class2_id]['stock_find'] ? '' : '只今品切れ中です'; 
     66            err_text = eccube.productsClassCategories[product_id][class1_id]['#' + class2_id]['stock_find'] ? '' : '只今品切れ中です'; 
    6767        } 
    6868 
     
    9898 
    9999                // 規格2に選択肢を割り当てる 
    100                 classcats = productsClassCategories[product_id][sele1.value]; 
     100                classcats = eccube.productsClassCategories[product_id][sele1.value]; 
    101101                i = 0; 
    102102                for (var classcat_id2_key in classcats) { 
     
    117117        classcat_id1 = form.classcategory_id1.value; 
    118118        classcat_id2 = form.classcategory_id2 ? form.classcategory_id2.value : ''; 
    119         classcat2 = productsClassCategories[product_id][classcat_id1]['#' + classcat_id2]; 
     119        classcat2 = eccube.productsClassCategories[product_id][classcat_id1]['#' + classcat_id2]; 
    120120        // 商品規格 
    121121        eleDynamic = document.getElementById('product_class_id' + product_id); 
     
    128128        } else { 
    129129            // 規格が1つのみの場合 
    130             classcat1 = productsClassCategories[product_id][classcat_id1]['#0']; 
     130            classcat1 = eccube.productsClassCategories[product_id][classcat_id1]['#0']; 
    131131            eleDynamic.value = classcat1.product_class_id; 
    132132        } 
  • branches/version-2_13-dev/data/Smarty/templates/default/products/detail.tpl

    r23063 r23065  
    3030        var $sele1 = $form.find('select[name=classcategory_id1]'); 
    3131        var $sele2 = $form.find('select[name=classcategory_id2]'); 
    32         setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
     32        eccube.common.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
    3333    } 
    3434    $(document).ready(function() { 
  • branches/version-2_13-dev/data/Smarty/templates/default/products/list.tpl

    r23064 r23065  
    2727        var $sele1 = $form.find('select[name=classcategory_id1]'); 
    2828        var $sele2 = $form.find('select[name=classcategory_id2]'); 
    29         setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
     29        eccube.common.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
    3030    } 
    3131    // 並び順を変更 
  • branches/version-2_13-dev/data/Smarty/templates/sphone/products/detail.tpl

    r23058 r23065  
    2929        var $sele1 = $form.find('select[name=classcategory_id1]'); 
    3030        var $sele2 = $form.find('select[name=classcategory_id2]'); 
    31         setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
     31        eccube.common.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); 
    3232    } 
    3333    $(function(){ 
Note: See TracChangeset for help on using the changeset viewer.