lint compliance
parent
ecb674c42a
commit
b45ab9c323
|
@ -20,7 +20,7 @@ define([
|
|||
var minutes = min < 10 ? "0" + min : min.toString();
|
||||
|
||||
return year + month + day + "T" + hours + minutes + "00Z";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
var getDate = function (str, end) {
|
||||
|
@ -45,7 +45,6 @@ define([
|
|||
|
||||
module.main = function (userDoc) {
|
||||
var content = userDoc.content;
|
||||
var md = userDoc.metadata;
|
||||
|
||||
var ICS = [
|
||||
'BEGIN:VCALENDAR',
|
||||
|
@ -119,9 +118,10 @@ define([
|
|||
var ICAL = window.ICAL;
|
||||
var res = {};
|
||||
|
||||
var vcalendar;
|
||||
try {
|
||||
var jcalData = ICAL.parse(content);
|
||||
var vcalendar = new ICAL.Component(jcalData);
|
||||
vcalendar = new ICAL.Component(jcalData);
|
||||
} catch (e) {
|
||||
return void cb(e);
|
||||
}
|
||||
|
|
|
@ -487,7 +487,7 @@ Messages.calendar_noNotification = "None";
|
|||
'class': 'fa fa-upload',
|
||||
},
|
||||
content: h('span', Messages.importButton),
|
||||
action: function (e) {
|
||||
action: function () {
|
||||
UIElements.importContent('text/calendar', function (res) {
|
||||
Export.import(res, id, function (err, json) {
|
||||
if (err) { return void UI.warn(Messages.importError); }
|
||||
|
|
Loading…
Reference in New Issue