(html) Improve Calendar properties dialog

This commit is contained in:
Francis Lachapelle
2015-07-31 11:18:29 -04:00
parent 3b9a989abd
commit 1d52be415f
2 changed files with 36 additions and 109 deletions

View File

@@ -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();
}
}
}