From a0caff3b6a0f7e90c4c5e994046ac9aebb85c71c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 13 Mar 2014 18:56:51 +0000 Subject: [PATCH] Javascript split() doesn't work like PHP explode() - fixed to not lose extras --- etemplate/js/et2_widget_link.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 5e482f794d..6532557d46 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -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)