mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-25 13:25:28 +00:00
@@ -225,7 +225,9 @@
|
||||
vm.removeAttendee = removeAttendee;
|
||||
vm.addAttachUrl = addAttachUrl;
|
||||
vm.priorityLevel = priorityLevel;
|
||||
vm.reset = reset;
|
||||
vm.cancel = cancel;
|
||||
vm.edit = edit;
|
||||
vm.save = save;
|
||||
vm.attendeeConflictError = false;
|
||||
vm.attendeesEditor = {
|
||||
@@ -302,19 +304,22 @@
|
||||
vm.component.$save(options)
|
||||
.then(function(data) {
|
||||
$rootScope.$emit('calendars:list');
|
||||
$mdDialog.hide();
|
||||
Alarm.getAlarms();
|
||||
$mdDialog.hide();
|
||||
}, function(response) {
|
||||
if (response.status == CalendarSettings.ConflictHTTPErrorCode &&
|
||||
response.data && response.data.message &&
|
||||
angular.isObject(response.data.message))
|
||||
if (response.status == CalendarSettings.ConflictHTTPErrorCode)
|
||||
vm.attendeeConflictError = response.data.message;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
function reset(form) {
|
||||
vm.component.$reset();
|
||||
form.$setPristine();
|
||||
}
|
||||
|
||||
function cancel(form) {
|
||||
reset(form);
|
||||
if (vm.component.isNew) {
|
||||
// Cancelling the creation of a component
|
||||
vm.component = null;
|
||||
@@ -322,6 +327,12 @@
|
||||
$mdDialog.cancel();
|
||||
}
|
||||
|
||||
function edit(form) {
|
||||
vm.attendeeConflictError = false;
|
||||
form.$setPristine();
|
||||
form.$setDirty();
|
||||
}
|
||||
|
||||
function getDays() {
|
||||
var days = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user