update for css of index page and i18n switch actions of UI.

This commit is contained in:
kunw 2016-05-18 22:50:29 +08:00
parent 354a01c495
commit 050ee79ab9
6 changed files with 10 additions and 7 deletions

View File

@ -17,7 +17,7 @@ body {
.up-section {
position: relative;
padding: 15px 15px 15px;
margin: 20px 0 20px 0;
margin: 20px -10px 0 0;
background-color: #FFFFFF;
height: 277px;
}
@ -38,6 +38,7 @@ body {
.down-section {
position: relative;
padding: 15px 15px 15px;
margin: 20px -10px 0 0;
background-color: #FFFFFF;
height: 350px;
}

View File

@ -19,6 +19,7 @@
function setLanguage(name) {
I18nService().setCurrentLanguage(name);
$window.location.reload();
}
function logOut() {

View File

@ -4,7 +4,8 @@
angular
.module('harbor.optional.menu', [
'harbor.services.user'
'harbor.services.user',
'harbor.services.i18n'
]);
})();

View File

@ -6,10 +6,10 @@
.module('harbor.layout.header')
.controller('HeaderController', HeaderController);
HeaderController.$inject = ['$scope'];
HeaderController.$inject = ['$scope', 'I18nService', '$cookies', '$window'];
function HeaderController($scope, I18nService, $cookies, $window) {
function HeaderController($scope) {
var vm = this;
}
})();

View File

@ -4,6 +4,7 @@
angular
.module('harbor.layout.header', [
'harbor.services.user'
'harbor.services.user',
'harbor.services.i18n'
]);
})();

View File

@ -23,7 +23,6 @@
language = defaultLanguage;
}
$cookies.put('language', language, {'path': '/'});
$window.location.reload();
},
'getCurrentLanguage': function() {
return $cookies.get('language') || defaultLanguage;