aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/CalendarDialog.js2
-rw-r--r--web/app/view/CalendarDialogController.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/CalendarDialog.js b/web/app/view/CalendarDialog.js
index 31d898ef..793f6ab2 100644
--- a/web/app/view/CalendarDialog.js
+++ b/web/app/view/CalendarDialog.js
@@ -40,7 +40,7 @@ Ext.define('Traccar.view.CalendarDialog', {
allowBlank: false,
buttonConfig: {
glyph: 'xf093@FontAwesome',
- text: "",
+ text: '',
tooltip: Strings.calendarSelect,
tooltipType: 'title',
minWidth: 0
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);