From bc27658dbd9a2fcdd26579d7e58d71cba68ccac7 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 28 Jul 2016 16:30:16 -0600 Subject: [PATCH] When loading something into admin, accept & show string data even though it's not valid --- admin/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/js/app.js b/admin/js/app.js index 1038772d09..4483ac60c2 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -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]); }, /**