Improve login page

Used ngCloak directive to display the form only once AngularJS/Angular
Material is loaded and all components initialized.
This commit is contained in:
Francis Lachapelle committed 2015-06-12 12:03:54 -04:00
1 parent 1f83680e12
commit e226a32413
5 files changed
+43 -15

No files matched your search

+11 -11
View File
@@ -21,18 +21,18 @@
});
return false;
};
$scope.showAbout = function() {
var alert;
alert = $mdDialog.alert({
title: 'About SOGo',
content: 'This is SOGo v3!',
ok: 'OK'
$scope.showAbout = function($event) {
$mdDialog.show({
targetEvent: $event,
templateUrl: 'aboutBox.html',
controller: AboutDialogController
});
$mdDialog
.show( alert )
.finally(function() {
alert = undefined;
});
AboutDialogController.$inject = ['scope', '$mdDialog'];
function AboutDialogController(scope, $mdDialog) {
scope.closeDialog = function() {
$mdDialog.hide();
};
}
};
}
})();