From 865f2b68241051045b912918cc59ff618df85f25 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 29 Apr 2014 21:51:49 +0800 Subject: [PATCH] Fixed welcome background --- app/js/directives.js | 17 +++++++++++++++++ app/partials/welcome.html | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/js/directives.js b/app/js/directives.js index 2c117fd2..5df0c971 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -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) { diff --git a/app/partials/welcome.html b/app/partials/welcome.html index 7f1c3bdc..c63496c8 100644 --- a/app/partials/welcome.html +++ b/app/partials/welcome.html @@ -17,7 +17,7 @@ -