1. jquery-ui muss im Top vorhanden sein für glquicksearch.js
2. Javacript und CssMenu brauchen das frame_header css nicht einbinden
3. js includes normalisiert ohne "js/" Präfix
use parent qw(SL::Layout::Base);
sub use_stylesheet {
- qw(icons16.css frame_header/header.css),
+ qw(icons16.css),
}
sub pre_content {
dhtmlsuite/menu-item.css
dhtmlsuite/menu-bar.css
icons16.css
- frame_header/header.css
menu.css
));
$_[0]->SUPER::stylesheets;
sub use_javascript {
my $self = shift;
qw(
- js/jquery.js
- js/common.js
- js/namespace.js
- js/kivi.js
+ jquery.js
+ common.js
+ namespace.js
+ kivi.js
),
- 'js/locale/'. $::myconfig{countrycode} .'.js',
+ 'locale/'. $::myconfig{countrycode} .'.js',
$self->SUPER::use_javascript(@_);
}
}
sub javascripts {
- ('js/quicksearch_input.js') x!! $::auth->assert('customer_vendor_edit', 1),
- ('js/glquicksearch.js') x!! $::auth->assert('general_ledger', 1)
+ ('jquery-ui.js', 'quicksearch_input.js') x!! $::auth->assert('customer_vendor_edit', 1),
+ ('jquery-ui.js', 'glquicksearch.js') x!! $::auth->assert('general_ledger', 1)
}
1;