From e6ebc011f255596f09fec40f69049514d52bebef Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 30 Jul 2016 14:21:14 -0400 Subject: add tabs to site-add, refactor textarea handling, and fix site_id post edit dialogs --- data/assets/js/admin/dialogs/page-edit.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'data/assets/js/admin/dialogs/page-edit.js') diff --git a/data/assets/js/admin/dialogs/page-edit.js b/data/assets/js/admin/dialogs/page-edit.js index 9e32d89..0e7a5b3 100644 --- a/data/assets/js/admin/dialogs/page-edit.js +++ b/data/assets/js/admin/dialogs/page-edit.js @@ -22,9 +22,7 @@ jQuery(function($) { // get assets var assets = ASSET_TYPES.reduce(function(r, key) { - var s = $(p + key).val().replace(/^\s+|\s$/mg, ''); - r[key] = JSON.stringify((s.length > 0) ? s.split(/\s+/m) : []); - + r[key] = listify(p + key); return r; }, {}); -- cgit v1.2.3