Fix redirection URLs in JavaScript

This commit is contained in:
Francis Lachapelle committed 2014-09-12 09:59:48 -04:00
1 parent 9eda70372f
commit b7f4b9c594
4 files changed
+12 -8

No files matched your search

@@ -7,7 +7,7 @@
angular.module('SOGo.RootPage', ['SOGo.Authentication', 'SOGo.UIMobile', 'ionic'])
.constant('sgSettings', {
'baseURL': '/SOGo/so/francis/'
'baseURL': ApplicationBaseURL
})
.run(function($ionicPlatform) {
@@ -48,9 +48,9 @@
$urlRouterProvider.otherwise('/app/login');
})
.controller('AppCtrl', function($scope) {
$scope.ApplicationBaseURL = ApplicationBaseURL;
})
.controller('AppCtrl', ['$scope', 'sgSettings', function(Settings, $scope) {
$scope.ApplicationBaseURL = Settings.baseURL;
}])
.controller('LoginCtrl', ['$scope', 'Authentication', 'sgDialog', function($scope, Authentication, Dialog) {
$scope.creds = { 'username': null, 'password': null };