Browse Source

Fixed welcome background

master
Igor Zhukov 11 years ago
parent
commit
865f2b6824
  1. 17
      app/js/directives.js
  2. 2
      app/partials/welcome.html

17
app/js/directives.js

@ -1103,6 +1103,23 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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) {

2
app/partials/welcome.html

@ -17,7 +17,7 @@ @@ -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">

Loading…
Cancel
Save