Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 268ed982

Von Sven Schöling vor mehr als 3 Jahren hinzugefügt

  • ID 268ed982e995d18c16506cdf4a8acb2656c278b0
  • Vorgänger 55879954
  • Nachfolger 9a2cf4dd

Layout: Anpassung von den meisten Layouts an die neue javascript/stylesheet Struktur

Unterschiede anzeigen:

SL/Layout/ActionBar.pm
39 39
  join '', map { $_->script } @{ $_[0]->actions };
40 40
}
41 41

  
42
sub javascripts {
42
sub static_javascripts {
43 43
  'kivi.ActionBar.js'
44 44
}
45 45

  
SL/Layout/CssMenu.pm
3 3
use strict;
4 4
use parent qw(SL::Layout::Base);
5 5

  
6
sub use_stylesheet {
6
sub static_stylesheets {
7 7
  qw(icons16.css),
8 8
}
9 9

  
SL/Layout/MenuLeft.pm
7 7
use SL::JSON qw(to_json);
8 8
use URI;
9 9

  
10
sub stylesheets {
10
sub static_stylesheets {
11 11
  qw(icons16.css icons24.css menu.css)
12 12
}
13 13

  
......
15 15
  "\$(function(){kivi.LeftMenu.init(@{[ to_json([ section_menu($_[0]->menu) ]) ]})});"
16 16
}
17 17

  
18
sub javascripts {
18
sub static_javascripts {
19 19
  qw(
20 20
    js/jquery.cookie.js
21 21
    js/kivi.LeftMenu.js
SL/Layout/None.pm
23 23
  );
24 24
}
25 25

  
26
sub use_javascript {
27
  my $self = shift;
26
sub static_javascripts {
28 27
  qw(
29 28
    jquery.js
30 29
    common.js
......
33 32
    kivi.js
34 33
  ),
35 34
  'locale/'. $::myconfig{countrycode} .'.js',
36
  $self->SUPER::use_javascript(@_);
37 35
}
38 36

  
39
sub use_stylesheet {
40
  my $self = shift;
37
sub static_stylesheets {
41 38
  qw(
42 39
    main.css
43 40
    menu.css
44 41
  ),
45
  $self->SUPER::use_stylesheet(@_);
46 42
}
47 43

  
48 44
1;
SL/Layout/Top.pm
22 22
  );
23 23
}
24 24

  
25
sub stylesheets {
25
sub static_stylesheets {
26 26
 'frame_header/header.css';
27 27
}
28 28

  
29
sub javascripts {
29
sub static_javascripts {
30 30
  'jquery-ui.js',
31 31
  'kivi.QuickSearch.js',
32 32
}

Auch abrufbar als: Unified diff