fixed a few bugs and also made it so language translators can enable the translations for javascript helpers
This commit is contained in:
parent
cca54fb0c3
commit
4033ad4b83
7 changed files with 33 additions and 5 deletions
|
|
@ -93,6 +93,10 @@ A text label that will be displayed if toHtmlWithWrapper() is called.
|
|||
|
||||
A unique identifier that can be used to identify this field with javascripts and cascading style sheets. Is autogenerated if not specified. The autogenerated version is the value of the name parameter concatinated with the string "_formId". So for a field called "title" it would be "title_formId".
|
||||
|
||||
=head4 idPrefix
|
||||
|
||||
If specified, this will be prepended to the id (whether autogenerated or not) to prevent overlap of two similar forms on the same page.
|
||||
|
||||
=head4 uiLevel
|
||||
|
||||
The UI Level that the user must meet or exceed if this field should be displayed with toHtmlWithWrapper() is called.
|
||||
|
|
@ -166,6 +170,9 @@ sub definition {
|
|||
defaultValue=>undef
|
||||
},
|
||||
id=>{
|
||||
defaultValue=>undef
|
||||
},
|
||||
idPrefix=>{
|
||||
defaultValue=>undef
|
||||
}
|
||||
});
|
||||
|
|
@ -352,6 +359,8 @@ sub new {
|
|||
unless ($params{id}) {
|
||||
$params{id} = $class->generateIdParameter($params{name});
|
||||
}
|
||||
# preventing ID collisions
|
||||
$params{id} = $params{idPrefix}.$params{id};
|
||||
bless \%params, $class;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue