diff --git a/UI/Templates/SchedulerUI/UIxAppointmentViewTemplate.wox b/UI/Templates/SchedulerUI/UIxAppointmentViewTemplate.wox index a5d38f8ba..837c28c90 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentViewTemplate.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentViewTemplate.wox @@ -43,6 +43,19 @@ + + + more_vert + + + + + + + + + close diff --git a/UI/Templates/SchedulerUI/UIxTaskViewTemplate.wox b/UI/Templates/SchedulerUI/UIxTaskViewTemplate.wox index 3e69ea42a..53ff9407f 100644 --- a/UI/Templates/SchedulerUI/UIxTaskViewTemplate.wox +++ b/UI/Templates/SchedulerUI/UIxTaskViewTemplate.wox @@ -43,6 +43,19 @@ + + + more_vert + + + + + + + + + close diff --git a/UI/WebServerResources/js/Scheduler/ComponentController.js b/UI/WebServerResources/js/Scheduler/ComponentController.js index 784bf073b..71b7fb7e8 100644 --- a/UI/WebServerResources/js/Scheduler/ComponentController.js +++ b/UI/WebServerResources/js/Scheduler/ComponentController.js @@ -19,6 +19,7 @@ vm.replyAllOccurrences = replyAllOccurrences; vm.deleteOccurrence = deleteOccurrence; vm.deleteAllOccurrences = deleteAllOccurrences; + vm.viewRawSource = viewRawSource; // Load all attributes of component if (angular.isUndefined(vm.component.$futureComponentData)) { @@ -104,7 +105,41 @@ $mdDialog.hide(); }); } -} + + function viewRawSource($event) { + Calendar.$$resource.post(vm.component.pid + '/' + vm.component.id, "raw").then(function(data) { + $mdDialog.show({ + parent: angular.element(document.body), + targetEvent: $event, + clickOutsideToClose: true, + escapeToClose: true, + template: [ + '', + ' ', + '
',
+            data,
+            '    
', + '
', + '
', + ' ' + l('Close') + '', + '
', + '
' + ].join(''), + controller: ComponentRawSourceDialogController + }); + + /** + * @ngInject + */ + ComponentRawSourceDialogController.$inject = ['scope', '$mdDialog']; + function ComponentRawSourceDialogController(scope, $mdDialog) { + scope.close = function() { + $mdDialog.hide(); + }; + } + }); + } + } /** * @ngInject @@ -120,6 +155,7 @@ vm.toggleRecurrenceEditor = toggleRecurrenceEditor; vm.showAttendeesEditor = angular.isDefined(vm.component.attendees); vm.toggleAttendeesEditor = toggleAttendeesEditor; + //vm.searchText = null; vm.cardFilter = cardFilter; vm.addAttendee = addAttendee; vm.addAttachUrl = addAttachUrl;