mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
(html) Improve Calendar properties dialog
This commit is contained in:
1 parent
3b9a989abd
commit
1d52be415f
2 files changed
+36
-109
No files matched your search
@@ -133,16 +133,21 @@
|
||||
PropertiesDialogController.$inject = ['$mdDialog', 'calendar'];
|
||||
function PropertiesDialogController($mdDialog, calendar) {
|
||||
var vm = this;
|
||||
vm.calendar = calendar;
|
||||
|
||||
vm.close = function() {
|
||||
$mdDialog.hide();
|
||||
};
|
||||
vm.calendar = new Calendar(calendar.$omit());
|
||||
vm.saveProperties = saveProperties;
|
||||
vm.close = close;
|
||||
|
||||
vm.saveProperties = function() {
|
||||
function saveProperties() {
|
||||
vm.calendar.$save();
|
||||
// Refresh list instance
|
||||
calendar.init(vm.calendar.$omit());
|
||||
$mdDialog.hide();
|
||||
};
|
||||
}
|
||||
|
||||
function close() {
|
||||
$mdDialog.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user