Expand what is accepted as a CSV for multi-select. Fixes Permanent time zone preference does not get saved.

This commit is contained in:
Nathan Gray 2014-05-12 22:03:38 +00:00
parent 34a382be2b
commit b4b1eee57a
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ var et2_widget = ClassWithAttributes.extend(
if(this.id) if(this.id)
{ {
this.id = this.id.replace(/\[/g,'[').replace(/]/g,']'); //this.id = this.id.replace(/\[/g,'[').replace(/]/g,']');
} }
// Add all attributes hidden in the content arrays to the attributes // Add all attributes hidden in the content arrays to the attributes

View File

@ -427,7 +427,7 @@ var et2_selectbox = et2_inputWidget.extend(
}, },
set_value: function(_value) { set_value: function(_value) {
if(typeof _value == "string" && this.options.multiple && _value.match(/^[,0-9A-Za-z]+$/) !== null) if(typeof _value == "string" && this.options.multiple && _value.match(/^[,0-9A-Za-z/-_]+$/) !== null)
{ {
_value = _value.split(','); _value = _value.split(',');
} }