Skip to content

Commit

Permalink
Bugfix: fixed extend field type integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
kstenschke committed Aug 1, 2015
1 parent 7f678a6 commit 35482db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion themes/admin/javascript/ionize/ionize_extendmanager.js
Expand Up @@ -1068,7 +1068,10 @@ ION.ExtendManager = new Class({
{
var id = input_name;
input_name += '[]';

if (typeOf(content) == 'null') content = '';
content = content.split(',');

get_input_field(input_name, id+1, content[0]);
get_input_field(input_name, id+2, content[1]);
}
Expand All @@ -1083,6 +1086,7 @@ ION.ExtendManager = new Class({
{
field = new Element('div');

if (typeOf(content) == 'null') content = '';
content = content.split(',');

var values = (extend.value).split('\n'),
Expand Down Expand Up @@ -1138,7 +1142,6 @@ ION.ExtendManager = new Class({
if (['select','select-multiple'].contains(dom_type))
{
if (typeOf(content) == 'null') content = '';

content = content.split(',');

var values = (extend.value).split('\n');
Expand Down Expand Up @@ -1213,7 +1216,10 @@ ION.ExtendManager = new Class({
{
var id = input_name;
input_name += '[]';

if (typeOf(content) == 'null') content = '';
content = content.split(',');

get_date_field(input_name, id+1, content[0]);
get_date_field(input_name, id+2, content[1]);
}
Expand Down Expand Up @@ -1286,7 +1292,10 @@ ION.ExtendManager = new Class({
{
var id = input_name;
input_name += '[]';

if (typeOf(content) == 'null') content = '';
content = content.split(',');

get_color_field(input_name, id+1, content[0]);
get_color_field(input_name, id+2, content[1]);
}
Expand Down

0 comments on commit 35482db

Please sign in to comment.