mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix multiple selection taglist can not handle comma separated values
This commit is contained in:
parent
957ca0f380
commit
1228270b52
@ -726,7 +726,16 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
|||||||
*/
|
*/
|
||||||
set_value: function(value)
|
set_value: function(value)
|
||||||
{
|
{
|
||||||
if (value === '' || value === null) value = [];
|
|
||||||
|
if (value === '' || value === null)
|
||||||
|
{
|
||||||
|
value = [];
|
||||||
|
}
|
||||||
|
else if (typeof value === 'string' && this.options.multiple)
|
||||||
|
{
|
||||||
|
value = value.split(',');
|
||||||
|
}
|
||||||
|
|
||||||
var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value];
|
var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value];
|
||||||
|
|
||||||
if(!value && this.taglist)
|
if(!value && this.taglist)
|
||||||
|
Loading…
Reference in New Issue
Block a user