- api: Form Controls and Workflow Activities may now include web based helper
subroutines directly in their files. See WebGUI::Operation::FormHelpers::www_formHelper and WebGUI::Operation::Workflow::www_activityHelper for details.
This commit is contained in:
parent
ce12dca15d
commit
0d145e6d91
9 changed files with 692 additions and 108 deletions
|
|
@ -194,8 +194,8 @@ sub toHtml {
|
|||
$uploadControl .= 'fileIcons["'.$ext.'"] = "'.$self->session->url->extras('fileIcons/'.$file).'";'."\n";
|
||||
}
|
||||
}
|
||||
$uploadControl .= sprintf q!var uploader = new FileUploadControl("%s", fileIcons, "%s","%d"); uploader.addRow(); </script>!,
|
||||
$self->get("name")."_file", $i18n->get("removeLabel"), $maxNewFiles;
|
||||
$uploadControl .= sprintf q!var uploader = new FileUploadControl("%s", fileIcons, "%s","%d", "%s"); uploader.addRow(); </script>!,
|
||||
$self->get("name")."_file", $i18n->get("removeLabel"), $maxNewFiles, $self->get("size");
|
||||
$uploadControl .= WebGUI::Form::Hidden->new($self->session, {-name => $self->privateName('action'), -value => 'upload'})->toHtml()."<br />";
|
||||
} else {
|
||||
$uploadControl .= WebGUI::Form::Hidden->new($self->session, {-name => $self->get("name"), -value => $self->get("value")})->toHtml()."<br />";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue