i18n the template attachments, fixes bug #11186

Also, rework some of the JS code according to jslint.
This commit is contained in:
Colin Kuskie 2009-11-09 13:28:53 -08:00
parent ce84be0498
commit 7b810ec227
4 changed files with 52 additions and 13 deletions

View file

@ -372,9 +372,12 @@ sub getEditForm {
);
my ($style, $url) = $self->session->quick(qw(style url));
$style->setScript($url->extras('yui/build/yahoo/yahoo-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/json/json-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/dom/dom-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/yahoo/yahoo-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/json/json-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/dom/dom-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/event/event-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui/build/connect/connect-min.js'), {type => 'text/javascript'});
$style->setScript($url->extras('yui-webgui/build/i18n/i18n.js'), {type => 'text/javascript'});
pop(@headers);
my $scriptUrl = $url->extras('templateAttachments.js');

View file

@ -379,6 +379,17 @@ Any scratch variables will be available in the template with this syntax:<br/>
message => q|Template in clipboard|,
lastUpdated => 0,
},
'Already attached!' => {
message => q|Already attached!|,
lastUpdated => 0,
},
'No url!' => {
message => q|No url!|,
lastUpdated => 0,
},
};
1;