Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 122d4a50

Von Werner Hahn vor mehr als 6 Jahren hinzugefügt

  • ID 122d4a5017b163381542004113ae9a8a2d3bf613
  • Vorgänger 08317144
  • Nachfolger 39bb09d3

Shopmodul: Nach Umbennenung Dateien mit Verweis richtig gestellt

Unterschiede anzeigen:

SL/Controller/ShopPart.pm
11 11
use SL::DB::ShopPart;
12 12
use SL::DB::File;
13 13
use SL::DB::ShopImage;
14
use SL::Controller::FileUploader;
15 14
use SL::DB::Default;
16 15
use SL::Helper::Flash;
17 16
use MIME::Base64;
......
94 93

  
95 94
  $self->js
96 95
    ->dialog->close('#jqueryui_popup_dialog')
97
    ->run('kivi.shop_part.show_images',$self->file->trans_id)
96
    ->run('kivi.ShopPart.show_images',$self->file->trans_id)
98 97
    ->render();
99 98
}
100 99

  
......
123 122

  
124 123
  $self->js
125 124
    ->dialog->close('#jqueryui_popup_dialog')
126
    ->run('kivi.shop_part.show_images',$self->file->trans_id)
125
    ->run('kivi.ShopPart.show_images',$self->file->trans_id)
127 126
    ->render();
128 127
}
129 128

  
......
132 131
  $self->file->delete;
133 132

  
134 133
  $self->js
135
    ->run('kivi.shop_part.show_images',$self->file->trans_id)
134
    ->run('kivi.ShopPart.show_images',$self->file->trans_id)
136 135
    ->render();
137 136
}
138 137

  
......
146 145

  
147 146
  $self->js
148 147
    ->run(
149
      'kivi.shop_part.shop_part_dialog',
148
      'kivi.ShopPart.shop_part_dialog',
150 149
      t8('Shopcategories'),
151 150
      $self->render('shop_part/categories', { output => 0 }, CATEGORIES => $categories )
152 151
    )
......
239 238
           ->html('#shop_part_active_' . $self->shop_part->id, $self->shop_part->active)
240 239
           ->html('#price_' . $self->shop_part->id, $::form->format_amount(\%::myconfig,$price,2))
241 240
           ->html('#active_price_source_' . $self->shop_part->id, $price_src_str)
242
           ->run('kivi.shop_part.close_dialog')
241
           ->run('kivi.ShopPart.close_dialog')
243 242
           ->flash('info', t8("Updated shop part"))
244 243
           ->render;
245 244
}
......
251 250
  # or a new shop_part with only part_id and shop_id set
252 251
  $self->js
253 252
    ->run(
254
      'kivi.shop_part.shop_part_dialog',
253
      'kivi.ShopPart.shop_part_dialog',
255 254
      t8('Shop part'),
256 255
      $self->render('shop_part/edit', { output => 0 }) #, shop_part => $self->shop_part)
257 256
    )
......
286 285

  
287 286
  flash('info', t8('The categories has been saved.'));
288 287

  
289
  $self->js->run('kivi.shop_part.close_dialog')
288
  $self->js->run('kivi.ShopPart.close_dialog')
290 289
           ->flash('info', t8("Updated categories"))
291 290
           ->render;
292 291
}
......
324 323
  my $html    = $self->render('shop_part/_upload_status', { output => 0 }, job => $job);
325 324

  
326 325
  $self->js->html('#status_mass_upload', $html);
327
  $self->js->run('kivi.shop_part.massUploadFinished') if $job->data_as_hash->{status} == SL::BackgroundJob::ShopPartMassUpload->DONE();
326
  $self->js->run('kivi.ShopPart.massUploadFinished') if $job->data_as_hash->{status} == SL::BackgroundJob::ShopPartMassUpload->DONE();
328 327
  $self->js->render;
329 328
}
330 329

  
......
350 349

  
351 350
   $self->js
352 351
      ->html('#status_mass_upload', $html)
353
      ->run('kivi.shop_part.massUploadStarted')
352
      ->run('kivi.ShopPart.massUploadStarted')
354 353
      ->render;
355 354
}
356 355

  
......
358 357
# internal stuff
359 358
#
360 359
sub add_javascripts  {
361
  $::request->{layout}->add_javascripts(qw(kivi.shop_part.js));
360
  $::request->{layout}->add_javascripts(qw(kivi.ShopPart.js));
362 361
}
363 362

  
364 363
sub load_pricesources {

Auch abrufbar als: Unified diff