mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
placeholder of select can be set
This commit is contained in:
parent
526d833ab1
commit
1399a3547e
|
@ -948,6 +948,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
|
||||
(!empty($value['name']) ? ' name="'.$value['name'].'"' : '').
|
||||
(!empty($value['class']) ? ' class="'.$value['class'].'"' : '').
|
||||
(!empty($value['placeholder']) ? ' data-placeholder="'.$value['placeholder'].'"' : '').
|
||||
(!empty($value['multiple']) ? ' multiple' : '');
|
||||
if(!empty($value['attributes']) && is_array($value['attributes']))
|
||||
foreach($value['attributes'] as $a)
|
||||
|
|
|
@ -313,7 +313,8 @@ $(document).ready( function() {
|
|||
'element'=>'select',
|
||||
'id'=>'selector',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
'options'=>$options,
|
||||
'placeholder'=>getMLText('select_groups'),
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
|
@ -332,7 +332,7 @@ $(document).ready( function() {
|
|||
'name'=>'groups[]',
|
||||
'class'=>'chzn-select',
|
||||
'multiple'=>true,
|
||||
'attributes'=>array(array('data-placeholder', getMLText('select_groups'))),
|
||||
'placeholder'=>getMLText('select_groups'),
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
|
@ -550,7 +550,8 @@ $(document).ready( function() {
|
|||
'element'=>'select',
|
||||
'id'=>'selector',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
'options'=>$options,
|
||||
'placeholder'=>getMLText('select_users'),
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user