summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-04-07 15:57:42 -0700
committerAaron Parecki <aaron@parecki.com>2016-04-07 15:57:42 -0700
commit9e817943acfb4c8a8b5824cd7a87a21a654a7fb1 (patch)
treedc16ffe24f3174d2a78ae46fdc26b889c2e5d9f5 /public/js
parent1e1039846dc202931bfa822bd52d7cdf451b2d22 (diff)
integrates photo uploading in the main note interface
Quill corrects the photo rotation based on exif data since iOS tends to take landscape photos and set the rotation bit when holding it in portrait mode.
Diffstat (limited to 'public/js')
-rw-r--r--public/js/script.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/script.js b/public/js/script.js
index ea86931..50496d3 100644
--- a/public/js/script.js
+++ b/public/js/script.js
@@ -15,7 +15,11 @@
}
function csv_to_array(val) {
- return val.split(/[, ]+/);
+ if(val.length > 0) {
+ return val.split(/[, ]+/);
+ } else {
+ return [];
+ }
}