When loading something into admin, accept & show string data even though it's not valid

This commit is contained in:
nathangray 2016-07-28 16:30:16 -06:00
parent 5422873599
commit bc27658dbd

View File

@ -308,7 +308,7 @@ app.classes.admin = AppJS.extend(
if(!_data || _data.type != undefined) return;
// Insert the content, etemplate will load into it
jQuery(this.ajax_target.node).append(_data[0]);
jQuery(this.ajax_target.node).append(typeof _data === 'string' ? _data : _data[0]);
},
/**