aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/util.js
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-30 15:10:14 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-30 15:10:14 -0400
commit0557ef64e2bd1161fd98a5dff6e45aea8e0d7567 (patch)
tree2960808d40679eb3059a8bbf22d389e81b5cb83d /data/assets/js/util.js
parente6ebc011f255596f09fec40f69049514d52bebef (diff)
downloadguff-0557ef64e2bd1161fd98a5dff6e45aea8e0d7567.tar.bz2
guff-0557ef64e2bd1161fd98a5dff6e45aea8e0d7567.zip
add site assets and remove set_default
Diffstat (limited to 'data/assets/js/util.js')
-rw-r--r--data/assets/js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/assets/js/util.js b/data/assets/js/util.js
index 6379961..a812f1f 100644
--- a/data/assets/js/util.js
+++ b/data/assets/js/util.js
@@ -39,8 +39,8 @@ jQuery(function($) {
// convert textarea to jsonified array of strings
window.listify = function(el) {
- var r = $(el).val().replace(/^\s+|\s+$/m, '');
- return JSON.stringify((r.length > 0) ? r.split(/\s+/m) : []);
+ var s = $(el).val().replace(/^\s+|\s+$/m, '');
+ return JSON.stringify((s.length > 0) ? s.split(/\s+/m) : []);
}