Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 69c941f8

Von Tamino Steinert vor 6 Tagen hinzugefügt

  • ID 69c941f88eeb0fcf9100ab192e637654572db121
  • Vorgänger 5e2ebb85
  • Nachfolger 10d07d12

FIX: S:C:ShopPart: Kein erneutes render beim Laden von Shopdaten

Unterschiede anzeigen:

js/kivi.ShopPart.js
95 95
  }
96 96

  
97 97
  ns.update_price_n_price_source = function(shop_part_id,price_source) {
98
    $.post('controller.pl', { action: 'ShopPart/show_price_n_pricesource', shop_part_id: shop_part_id, pricesource: price_source }, function(data) {
99
      kivi.eval_json_result(data);
98
    data = [
99
      {name: 'action',       value: 'ShopPart/show_price_n_pricesource'},
100
      {name: 'shop_part_id', value: shop_part_id},
101
      {name: 'pricesource',  value: price_source},
102
    ];
103

  
104
    $.ajax({
105
      url: 'controller.pl',
106
      data: data,
107
      method: 'POST',
108
      dataType: 'json',
109
      success: function(data){
110
        $("#active_price_source_" + shop_part_id).html(data.active_price_source);
111
        $("#price_" + shop_part_id).html(data.price);
112
      }
100 113
    });
101 114
  }
102 115

  
103 116
  ns.update_stock = function(shop_part_id) {
104
    $.post('controller.pl', { action: 'ShopPart/show_stock', shop_part_id: shop_part_id }, function(data) {
105
      kivi.eval_json_result(data);
117
    data = [
118
      {name: 'action',       value: 'ShopPart/show_stock'},
119
      {name: 'shop_part_id', value: shop_part_id},
120
    ];
121

  
122
    $.ajax({
123
      url: 'controller.pl',
124
      data: data,
125
      method: 'POST',
126
      dataType: 'json',
127
      success: function(data){
128
        $("#stock_" + shop_part_id).html(data.stock_local + ' / ' + data.stock_shop);
129
        // $("#toogle_" + shop_part_id).html(data.active_online + '');
130
      }
106 131
    });
107 132
  }
108 133

  

Auch abrufbar als: Unified diff