diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f5086ad..1f02784 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,6 @@ - - @@ -25,11 +23,11 @@ - + - - + + @@ -45,24 +43,11 @@ - - - - - - - - - - - - - - + - - + + @@ -254,6 +239,24 @@ - @@ -726,14 +729,6 @@ - - - - - - - - @@ -745,6 +740,14 @@ + + + + + + + + @@ -753,10 +756,10 @@ - + - - + + diff --git a/js/data/Actions.js b/js/data/Actions.js index da1c61d..3274c47 100644 --- a/js/data/Actions.js +++ b/js/data/Actions.js @@ -41,7 +41,7 @@ Zarafa.plugins.calendarimporter.data.Actions = { * @param recordIds */ exportToICS: function (storeId, recordIds, recordFolder) { - if((typeof recordIds != "undefined" && recordIds.length < 1) || (typeof recordFolder != "undefined" && recordFolder.get('content_count') < 1)) { + if ((typeof recordIds != "undefined" && recordIds.length < 1) || (typeof recordFolder != "undefined" && recordFolder.get('content_count') < 1)) { Zarafa.common.dialogs.MessageBox.show({ title: dgettext('plugin_calendarimporter', 'Error'), msg: dgettext('plugin_calendarimporter', 'No events found. Export skipped!'), @@ -61,12 +61,12 @@ Zarafa.plugins.calendarimporter.data.Actions = { folder: undefined }; - if(typeof recordIds != "undefined") { + if (typeof recordIds != "undefined") { exportPayload.records = recordIds; recordcount = recordIds.length; } - if(typeof recordFolder != "undefined") { + if (typeof recordFolder != "undefined") { exportPayload.folder = recordFolder.get("entryid"); recordcount = recordFolder.get('content_count'); } @@ -76,7 +76,6 @@ Zarafa.plugins.calendarimporter.data.Actions = { container.getNotifier().notify('info', dgettext('plugin_contactimporter', 'Calendar Export'), String.format(dgettext('plugin_calendarimporter', 'Exporting {0} events. Please wait...'), recordcount)); - // request attachment preperation container.getRequest().singleRequest( 'calendarmodule',