Remove types for setScript calls, add setCss, which is shorthand for setLink with the CSS specific params preset.
This commit is contained in:
parent
17d9deb085
commit
1f42a0a24e
50 changed files with 159 additions and 173 deletions
|
|
@ -67,7 +67,7 @@ sub www_editBranch {
|
|||
my ($class, $asset) = @_;
|
||||
my $session = $asset->session;
|
||||
my ( $style, $url ) = $session->quick( qw( style url ) );
|
||||
$style->setLink( $url->extras('hoverhelp.css'), { rel => "stylesheet", type => "text/css" } );
|
||||
$style->setCss( $url->extras('hoverhelp.css'));
|
||||
$style->setScript( $url->extras('yui/build/yahoo-dom-event/yahoo-dom-event.js') );
|
||||
$style->setScript( $url->extras('yui/build/container/container-min.js') );
|
||||
$style->setScript( $url->extras('hoverhelp.js') );
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ sub www_export {
|
|||
my $session = $asset->session;
|
||||
return $session->privilege->insufficient() unless ($session->user->isInGroup(13));
|
||||
my ( $style, $url ) = $session->quick(qw{ style url });
|
||||
$style->setLink( $url->extras('hoverhelp.css'), { rel => "stylesheet", type => "text/css" } );
|
||||
$style->setCss( $url->extras('hoverhelp.css'));
|
||||
$style->setScript( $url->extras('yui/build/yahoo-dom-event/yahoo-dom-event.js') );
|
||||
$style->setScript( $url->extras('yui/build/container/container-min.js') );
|
||||
$style->setScript( $url->extras('hoverhelp.js') );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue