fixed multiple my problems
This commit is contained in:
parent
e623a62532
commit
5628fcbdd6
1 changed files with 3 additions and 3 deletions
|
|
@ -1475,7 +1475,7 @@ This will be used if no value is specified. Defaults to "save".
|
||||||
sub submit {
|
sub submit {
|
||||||
my $params = shift;
|
my $params = shift;
|
||||||
my $value = $params->{value} || $params->{defaultValue} || WebGUI::International::get(62);
|
my $value = $params->{value} || $params->{defaultValue} || WebGUI::International::get(62);
|
||||||
my $value = _fixQuotes($value);
|
$value = _fixQuotes($value);
|
||||||
my $wait = WebGUI::International::get(452);
|
my $wait = WebGUI::International::get(452);
|
||||||
return '<input type="submit" value="'.$value.'" onClick="this.value=\''.$wait.'\'" '.$params->{extras}.' />';
|
return '<input type="submit" value="'.$value.'" onClick="this.value=\''.$wait.'\'" '.$params->{extras}.' />';
|
||||||
|
|
||||||
|
|
@ -1789,14 +1789,14 @@ This will be used if no value is specified. Defaults to 1.
|
||||||
|
|
||||||
sub yesNo {
|
sub yesNo {
|
||||||
my $params = shift;
|
my $params = shift;
|
||||||
my ($subtext, $checkYes, $checkNo, $class, $output, $name, $label, $extras, $value);
|
my ($checkYes, $checkNo);
|
||||||
my $value = $params->{value}||$params->{defaultValue};
|
my $value = $params->{value}||$params->{defaultValue};
|
||||||
if ($value) {
|
if ($value) {
|
||||||
$checkYes = 1;
|
$checkYes = 1;
|
||||||
} else {
|
} else {
|
||||||
$checkNo = 1;
|
$checkNo = 1;
|
||||||
}
|
}
|
||||||
$output = radio({
|
my $output = radio({
|
||||||
checked=>$checkYes,
|
checked=>$checkYes,
|
||||||
name=>$params->{name},
|
name=>$params->{name},
|
||||||
value=>1,
|
value=>1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue