diff --git a/js/manifest.js b/js/manifest.js index fef4a7f..75eb160 100644 --- a/js/manifest.js +++ b/js/manifest.js @@ -1,7 +1,7 @@ var myManifest = { Debug: (window.location.port !== ""), Name: "Il Lievitario", - Version: "3.0.4.1", + Version: "3.0.4.3", Author: "Denis Ironi", Settings: { ShowStartMessage: true, diff --git a/js/modules/maps/maps.js b/js/modules/maps/maps.js index a010e57..7d58855 100644 --- a/js/modules/maps/maps.js +++ b/js/modules/maps/maps.js @@ -78,9 +78,9 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate. position: google.maps.ControlPosition.RIGHT_CENTER },         }; - $("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/); - $("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height()); - self.map = new google.maps.Map($("#map-canvas")[0], myOptions); + self.$el.find("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/); + self.$el.find("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height()); + self.map = new google.maps.Map(self.$el.find("#map-canvas")[0], myOptions); // Create the search box and link it to the UI element. var input = $('')[0]; @@ -200,7 +200,9 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate. $("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/); $("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height()); }); - + }, + onShowing: function(){ + var self = this; if ( navigator.geolocation ) {         function success(pos) {             // Location found, show map with these coordinates diff --git a/js/modules/settings/settingsViewTemplate.html b/js/modules/settings/settingsViewTemplate.html index 161450c..db01377 100644 --- a/js/modules/settings/settingsViewTemplate.html +++ b/js/modules/settings/settingsViewTemplate.html @@ -11,10 +11,9 @@