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

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

File:
1 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        } 
Note: See TracChangeset for help on using the changeset viewer.