Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 19af5bbe

Von Bernd Bleßmann vor 4 Monaten hinzugefügt

  • ID 19af5bbe3bdc93f7b9211fa21959b18f8257d380
  • Vorgänger a92341e3
  • Nachfolger 99399a6c

Presenter Lagerplatz: Lagerplätze laden, wenn Seite geladen wird.

Dazu eigene class-Attribute für die Tags vergeben.

Unterschiede anzeigen:

SL/Presenter/Warehouse.pm
40 40

  
41 41
  return if (!@$all_warehouses && !$show_if_empty);
42 42

  
43
  my $class     = delete $attributes{class};
44
  my $div_class = $class ? $class . ' ' . 'wh-bin-select-presenter-div' : 'wh-bin-select-presenter-div';
45
  my $wh_class  = $class ? $class . ' ' . 'wh-bin-select-presenter-wh'  : 'wh-bin-select-presenter-wh';
46
  my $bin_class = $class ? $class . ' ' . 'wh-bin-select-presenter-bin' : 'wh-bin-select-presenter-bin';
47

  
43 48
  my %div_attributes = (
44
    name => $div_name,
45
    id   => $div_id,
49
    name  => $div_name,
50
    id    => $div_id,
51
    class => $div_class,
46 52
    %attributes
47 53
  );
48 54

  
......
54 60
    onchange            => 'kivi.Warehouse.wh_changed(this);',
55 61
    'data-bin-dom-name' => $bin_name,
56 62
    'data-bin-dom-id'   => $bin_id,
63
    class               => $wh_class,
57 64
    %attributes
58 65
  );
59 66

  
......
61 68
    id        => $bin_id,
62 69
    default   => $bin_default,
63 70
    title_key => 'description',
71
    class     => $bin_class,
64 72
    %attributes
65 73
  );
66 74

  
js/kivi.Warehouse.js
18 18
    });
19 19
  };
20 20

  
21
  $(function(){
22
    $('.wh-bin-select-presenter-wh').each(function(idx, elt) {
23
      ns.wh_changed(elt);
24
    });
25
  });
26

  
21 27
});

Auch abrufbar als: Unified diff