Changeset 19415


Ignore:
Timestamp:
2010/11/07 02:50:27 (12 years ago)
Author:
kishik
Message:

商品一覧での変更処理のリファイン

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-C/data/Smarty/templates/admin/products/index.tpl

    r19404 r19415  
    2424<script type="text/javascript" src="/html/user_data/packages/admin/js/Tween.js"></script> 
    2525<script type="text/javascript" src="/html/user_data/packages/admin/js/ColorTween.js"></script> 
     26 
     27<script type="text/javascript"> 
     28function lfCheckEditResult(result){ 
     29    if(result!='ok'){ 
     30        alert('エラー:変更できませんでした'); 
     31    } 
     32} 
     33</script> 
    2634 
    2735<script type="text/javascript"> 
     
    239247            無制限 
    240248          <!--{else}--> 
    241             <input type="text" name="stock_edit_<!--{$arrProducts[cnt].product_id}-->" size="8" value="<!--{$arrProducts[cnt].stock_min}-->" onchange="jQuery.post('./index.php', {'mode':'stock_edit','stock_edit_id':'<!--{$arrProducts[cnt].product_id}-->','stock_edit_value':this.value}, function(result){if(result!='ok'){alert('エラー:変更できませんでした');};});bgColorTween=new ColorTween(this.style,'backgroundColor',Tween.regularEaseOut,'0000ff','ffffff',1);bgColorTween.start();"> 
     249            <input type="text" name="stock_edit_<!--{$arrProducts[cnt].product_id}-->" size="8" value="<!--{$arrProducts[cnt].stock_min}-->" onchange="jQuery.post('./index.php', {'mode':'stock_edit','stock_edit_id':'<!--{$arrProducts[cnt].product_id}-->','stock_edit_value':this.value}, lfCheckEditResult);bgColorTween=new ColorTween(this.style,'backgroundColor',Tween.regularEaseOut,'0000ff','ffffff',0.6);bgColorTween.start();"> 
    242250          <!--{/if}--> 
    243251        <!--{/if}--> 
Note: See TracChangeset for help on using the changeset viewer.