Fixed welcome background

This commit is contained in:
Igor Zhukov 2014-04-29 21:51:49 +08:00
parent b7cf8f36ba
commit 865f2b6824
2 changed files with 18 additions and 1 deletions

View File

@ -1103,6 +1103,23 @@ angular.module('myApp.directives', ['myApp.filters'])
};
})
.directive('myCustomBackground', function () {
return {
link: link
};
function link($scope, element, attrs) {
console.log(dT(), 'bg', attrs.myCustomBackground);
$('html').css({background: attrs.myCustomBackground});
$scope.$on('$destroy', function () {
$('html').css({background: ''});
});
};
})
.directive('myModalPosition', function ($window, $timeout) {

View File

@ -17,7 +17,7 @@
</div>
</div>
<div class="welcome_footer">
<div class="welcome_footer" my-custom-background="#f8f8f8">
<div class="welcome_cards_wrap clearfix">
<div class="container-fluid">