Changeset 16627


Ignore:
Timestamp:
2007/10/30 21:03:19 (16 years ago)
Author:
adachi
Message:

表示調整

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/user_data/templates/default/js/ownersstore.js.php

    r16610 r16627  
    9696        var errcode  = resp.errcode || ''; 
    9797 
    98         var TB_WIDTH = 700; 
    99         var TB_HEIGHT = 400; 
     98        var TB_WIDTH = 400; 
     99        var TB_HEIGHT = 300; 
    100100        var ajaxContentW = TB_WIDTH - 20; 
    101101        var ajaxContentH = TB_HEIGHT - 45; 
     
    144144    products_list: function() { 
    145145        this.show_loading(); 
     146        var show = this.show_result; 
    146147        var remove = this.remove; 
     148        $().ajaxError(this.show_result); 
    147149        $.post( 
    148             upgrade_url, 
     150           upgrade_url, 
    149151            {mode: 'products_list'}, 
    150152            function(resp, status) { 
    151                 remove(); 
    152                 $('#ownersstore_products_list').html(resp.body); 
     153                if (resp.status == 'ERROR') { 
     154                    show(resp, status); 
     155                } else { 
     156                    remove(); 
     157                    $('#ownersstore_products_list').html(resp.body); 
     158                } 
    153159            }, 
    154160            'json' 
Note: See TracChangeset for help on using the changeset viewer.