diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-30 15:10:14 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-30 15:10:14 -0400 |
commit | 0557ef64e2bd1161fd98a5dff6e45aea8e0d7567 (patch) | |
tree | 2960808d40679eb3059a8bbf22d389e81b5cb83d /data/assets/js/util.js | |
parent | e6ebc011f255596f09fec40f69049514d52bebef (diff) | |
download | guff-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.js | 4 |
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) : []); } |