aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/page-edit.js
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-30 14:21:14 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-30 14:21:14 -0400
commite6ebc011f255596f09fec40f69049514d52bebef (patch)
tree20685173557726f1f470a7f40321281e1347d4eb /data/assets/js/admin/dialogs/page-edit.js
parentb0083827f30fccc9aabcabed0557ace83d570b8c (diff)
downloadguff-e6ebc011f255596f09fec40f69049514d52bebef.tar.bz2
guff-e6ebc011f255596f09fec40f69049514d52bebef.zip
add tabs to site-add, refactor textarea handling, and fix site_id post edit dialogs
Diffstat (limited to 'data/assets/js/admin/dialogs/page-edit.js')
-rw-r--r--data/assets/js/admin/dialogs/page-edit.js4
1 files changed, 1 insertions, 3 deletions
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;
}, {});