mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
turn .chzn-select-deselect into select2 box
This commit is contained in:
parent
76f6de08de
commit
c485c272f5
|
@ -35,8 +35,18 @@ $(document).ready( function() {
|
|||
return $newstate;
|
||||
}
|
||||
});
|
||||
$(".chzn-select-deselect").select({
|
||||
allowClear:true
|
||||
$(".chzn-select-deselect").select2({
|
||||
allowClear:true,
|
||||
width: '100%',
|
||||
templateResult: function (state) {
|
||||
var subtitle = $(state.element).data('subtitle');
|
||||
var html = '<span>'+state.text+'';
|
||||
if(subtitle)
|
||||
html += '<br /><i>'+subtitle+'</i>';
|
||||
html += '</span>';
|
||||
var $newstate = $(html);
|
||||
return $newstate;
|
||||
}
|
||||
});
|
||||
|
||||
/* change the color and length of the bar graph showing the password
|
||||
|
|
Loading…
Reference in New Issue
Block a user