From bbffcebb6c0491ad15c9c57fe1bcbf8f54ed1c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 27 Dec 2016 23:41:14 +0100 Subject: [PATCH] fix url when using different apps folder --- js/public/app.js | 2 +- templates/main.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/public/app.js b/js/public/app.js index e4d4177..6f56435 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -58,7 +58,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil // timeout functions internal calls cannot be serialized $timeout(function () { - var imgPath = OC.generateUrl('/apps/weather').replace('index.php/',''); + var imgPath = OC.filePath('weather','img','').replace('index.php/',''); $scope.owncloudAppImgPath = imgPath; $scope.loadCities(); }); diff --git a/templates/main.php b/templates/main.php index d497495..3ba713c 100644 --- a/templates/main.php +++ b/templates/main.php @@ -48,12 +48,12 @@ Click here to get an API key -
+
{{ currentCity.name }}, {{ currentCity.sys.country }} - - + +
{{ currentCity.main.temp }}{{ metricRepresentation }}
Pressure: {{ currentCity.main.pressure }} hpa