diff --git a/js/app.js b/js/app.js index 92a8212..cc12145 100644 --- a/js/app.js +++ b/js/app.js @@ -51,9 +51,12 @@ define(['jquery', 'underscore', 'backbone', 'router', 'classes/profile', 'classe gender = json.gender; } - if(gender !== "") + if(gender === undefined) gender = "unknown"; + if(email === undefined) + email = ""; + Debug.writeMessage('Your name is ' + json.name + ' in the social ' + auth.network + ", ID=" + id + ", DisplayName: "+ displayName + ", email:"+ email); Profile._loadProfile(id, function (retVal) { diff --git a/js/manifest.js b/js/manifest.js index 86b3b19..7e4756e 100644 --- a/js/manifest.js +++ b/js/manifest.js @@ -1,7 +1,7 @@ var myManifest = { Debug: (window.location.port !== ""), Name: "Il Lievitario", - Version: "3.1.1.0", + Version: "3.0.1.5", Author: "Denis Ironi", Settings: { DefaultURL: (window.location.port === "" ? "http://" + window.location.host + "/Service": "http://" + window.location.hostname + ":" + window.location.port + "/Service_Manut"), diff --git a/js/modules/category/categoryItemTemplate.html b/js/modules/category/categoryItemTemplate.html index 2dd1295..df9fc19 100644 --- a/js/modules/category/categoryItemTemplate.html +++ b/js/modules/category/categoryItemTemplate.html @@ -4,9 +4,9 @@ <% var item = data.items[i]; %>
<%= ricetta.procedimento%>
La proprietà del materiale pubblicato nel Lievitario , salvo diversa indicazione, è dei rispettivi autori. E’ vietata la ripubblicazione, anche parziale, di tutto il materiale pubblicato nel sito Lievitario senza preventiva autorizzazione scritta.
- <% if(ricetta.autore.length > 0){ %> diff --git a/js/modules/settings/settings.js b/js/modules/settings/settings.js index 201a6e5..d34aa19 100644 --- a/js/modules/settings/settings.js +++ b/js/modules/settings/settings.js @@ -92,7 +92,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe Profile.data.dataSpacc.provincia + "+" + Profile.data.dataSpacc.stato + "&sensor=false", Type: "GET" }).then(function ( response ) { - if(response.results.length == 1) + if(response.results.length > 0) { Profile.data.dataSpacc.lat = response.results[0].geometry.location.lat; Profile.data.dataSpacc.long = response.results[0].geometry.location.lng;