aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/CalendarDialogController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-15 10:05:37 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-15 10:05:37 +0500
commit917b1064c735486e37439d6d0e6d6d3642521297 (patch)
tree5b9c8ec31d86b83eb75577d3324a3f80c9c87026 /web/app/view/CalendarDialogController.js
parenteec9ffbf8213f1df69162131245cb3282c68ca0a (diff)
downloadtrackermap-web-917b1064c735486e37439d6d0e6d6d3642521297.tar.gz
trackermap-web-917b1064c735486e37439d6d0e6d6d3642521297.tar.bz2
trackermap-web-917b1064c735486e37439d6d0e6d6d3642521297.zip
Remove variable and use single quotes.
Diffstat (limited to 'web/app/view/CalendarDialogController.js')
-rw-r--r--web/app/view/CalendarDialogController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/CalendarDialogController.js b/web/app/view/CalendarDialogController.js
index f90c811c..48400bc5 100644
--- a/web/app/view/CalendarDialogController.js
+++ b/web/app/view/CalendarDialogController.js
@@ -25,8 +25,8 @@ Ext.define('Traccar.view.CalendarDialogController', {
if (fileField.fileInputEl.dom.files.length > 0) {
reader = new FileReader();
reader.onload = function (event) {
- var b64String = btoa(String.fromCharCode.apply(null, new Uint8Array(event.target.result)));
- fileField.up('window').lookupReference('calendarDataField').setValue(b64String);
+ fileField.up('window').lookupReference('calendarDataField').setValue(
+ btoa(String.fromCharCode.apply(null, new Uint8Array(event.target.result))));
};
reader.onerror = function (event) {
Traccar.app.showError(event.target.error);