mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01: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)
|
||||
{
|
||||
var split = et2_csvSplit(_value, 2,":");
|
||||
var split = _value.split(":");
|
||||
|
||||
_value = {
|
||||
app: split[0],
|
||||
id: split[1]
|
||||
app: split.shift(),
|
||||
id: split
|
||||
};
|
||||
}
|
||||
else if(_value && this.options.only_app)
|
||||
|
Loading…
Reference in New Issue
Block a user