sogo/UI/WebServerResources/js/Main.js
2015-08-07 10:37:36 -04:00

2 lines
820 B
JavaScript

!function(){"use strict";function loginController($scope,$mdDialog,Authentication){$scope.warning=!1,$scope.creds={username:cookieUsername,password:null},$scope.login=function(creds){return $scope.warning=!1,Authentication.login(creds).then(function(url){window.location.href=url},function(msg){$scope.warning=msg.error}),!1},$scope.showAbout=function($event){function AboutDialogController(scope,$mdDialog){scope.closeDialog=function(){$mdDialog.hide()}}$mdDialog.show({targetEvent:$event,templateUrl:"aboutBox.html",controller:AboutDialogController}),AboutDialogController.$inject=["scope","$mdDialog"]}}angular.module("SOGo.MainUI",["SOGo.Common","SOGo.Authentication"]).controller("loginController",loginController),loginController.$inject=["$scope","$mdDialog","Authentication"]}();
//# sourceMappingURL=Main.js.map