mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 02:18:28 +02:00
Javascript split() doesn't work like PHP explode() - fixed to not lose extras
This commit is contained in:
parent
fdef5d9484
commit
a0caff3b6a
@ -776,11 +776,11 @@ var et2_link_entry = et2_inputWidget.extend(
|
|||||||
if(typeof _value == 'string' && _value.indexOf(",") > 0) _value = _value.replace(",",":");
|
if(typeof _value == 'string' && _value.indexOf(",") > 0) _value = _value.replace(",",":");
|
||||||
if(typeof _value == 'string' && _value.indexOf(":") >= 0)
|
if(typeof _value == 'string' && _value.indexOf(":") >= 0)
|
||||||
{
|
{
|
||||||
var split = et2_csvSplit(_value, 2,":");
|
var split = _value.split(":");
|
||||||
|
|
||||||
_value = {
|
_value = {
|
||||||
app: split[0],
|
app: split.shift(),
|
||||||
id: split[1]
|
id: split
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if(_value && this.options.only_app)
|
else if(_value && this.options.only_app)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user