|
Lines 58-69
sub _get_chunk {
Link Here
|
| 58 |
if( $options{'syntax'} ){ |
58 |
if( $options{'syntax'} ){ |
| 59 |
$chunk->{'syntax'} = $options{'syntax'}; |
59 |
$chunk->{'syntax'} = $options{'syntax'}; |
| 60 |
} |
60 |
} |
| 61 |
|
61 |
if( $options{'type'} ) { |
| 62 |
if( $options{'type'} && $options{'type'} eq 'modalselect' ){ |
62 |
if( $options{'type'} eq 'modalselect' ){ |
| 63 |
$chunk->{'source'} = $options{'source'}; |
63 |
$chunk->{'source'} = $options{'source'}; |
| 64 |
$chunk->{'exclusions'} = $options{'exclusions'} // ""; |
64 |
$chunk->{'exclusions'} = $options{'exclusions'} // ""; |
| 65 |
$chunk->{'required'} = $options{'required'} // ""; |
65 |
$chunk->{'required'} = $options{'required'} // ""; |
| 66 |
$chunk->{'type'} = 'modalselect'; |
66 |
$chunk->{'type'} = 'modalselect'; |
|
|
67 |
} elsif( $options{'type'} eq 'modaljs' ){ |
| 68 |
$chunk->{'type'} = 'modaljs'; |
| 69 |
$chunk->{'initiator'} = $options{'initiator'}; |
| 70 |
$chunk->{'processor'} = $options{'processor'}; |
| 71 |
} |
| 67 |
} |
72 |
} |
| 68 |
|
73 |
|
| 69 |
if ( $options{'class'} && $options{'class'} eq 'password' ) { |
74 |
if ( $options{'class'} && $options{'class'} eq 'password' ) { |