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