Fixed international problem in JavaScript file
This commit is contained in:
parent
adf3fe68b0
commit
c3989308fa
3 changed files with 14 additions and 5 deletions
|
|
@ -240,11 +240,12 @@ sub toHtml {
|
|||
$json->{$class} = \%fields;
|
||||
}
|
||||
|
||||
#Encode the JSON and add it to the end of the body
|
||||
my $jsonStr = JSON->new->encode($json);
|
||||
#Encode the JSON and add it to the end of the body
|
||||
my $first_row_error_msg = $i18n->get("first_row_error_msg");
|
||||
my $jsonStr = JSON->new->encode($json);
|
||||
$style->setRawHeadTags(qq|<script type="text/javascript">var classValues = $jsonStr; </script>|);
|
||||
my $jsonData = $self->get("value") || q|{ "isNew" : "true" }|;
|
||||
$style->setRawHeadTags(qq|<script type="text/javascript">var dataValues = $jsonData;</script>|);
|
||||
my $jsonData = $self->get("value") || q|{ "isNew" : "true" }|;
|
||||
$style->setRawHeadTags(qq|<script type="text/javascript">var dataValues = $jsonData; var first_row_error_msg = '$first_row_error_msg';</script>|);
|
||||
$session->style->setScript($session->url->extras("yui-webgui/build/form/assetReportQuery.js"),{ type=>"text/javascript" });
|
||||
|
||||
#Decode JSON data for filling in some of the fields
|
||||
|
|
|
|||
|
|
@ -98,6 +98,11 @@ our $I18N = {
|
|||
context => q{General item in asset select list},
|
||||
},
|
||||
|
||||
'first_row_error_msg' => {
|
||||
message => q|The first row may not be deleted. Please adjust your query appropriately|,
|
||||
lastUpdated => 1078852836,
|
||||
context => q{Error message in javascript},
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue