diff --git a/assets/img/pages/home/landingPage/img_background.jpg b/assets/img/pages/home/landingPage/img_background.jpg old mode 100755 new mode 100644 index e820dcba..70a65b42 Binary files a/assets/img/pages/home/landingPage/img_background.jpg and b/assets/img/pages/home/landingPage/img_background.jpg differ diff --git a/assets/js/pages/home/landingPage.js b/assets/js/pages/home/landingPage.js index f09a5c5a..9c151c4e 100644 --- a/assets/js/pages/home/landingPage.js +++ b/assets/js/pages/home/landingPage.js @@ -17,16 +17,14 @@ ComunicWeb.pages.home.landingPage = { document.title = "Comunic, a transparent social network"; //Prepare additional data - var additionalData = {}; + var additionalData = { + + //Background image URL + backgroundImage: ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg" - //Preparing next actions - var afterParsingTemplate = function(){ - - //Change home background - byId("homeLandingScreen").style.backgroundImage = "url('"+ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg')"; }; //Apply template - ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", afterParsingTemplate, true); + ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", false, true); } }; \ No newline at end of file diff --git a/assets/templates/pages/home/landingPage/home.tpl b/assets/templates/pages/home/landingPage/home.tpl index 5c7f42ca..cdfc8d52 100644 --- a/assets/templates/pages/home/landingPage/home.tpl +++ b/assets/templates/pages/home/landingPage/home.tpl @@ -13,7 +13,7 @@