summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/script.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/public/js/script.js b/public/js/script.js
index f6f3a48..57990ee 100644
--- a/public/js/script.js
+++ b/public/js/script.js
@@ -14,15 +14,10 @@
return num;
}
- function csv_to_array(val) {
- if(val.length > 0) {
- return val.split(/[, ]+/);
- } else {
- return [];
- }
+ function tokenfieldToArray(sel) {
+ return $(sel).tokenfield("getTokens").map(function(t){ return t.value});
}
-
$(function(){
// Set the date from JS