Skip to content

Commit

Permalink
Aggiornamento di emergenza per problemi nel backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdi2005 committed Jul 12, 2020
1 parent c6d206f commit d8d55e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ tmp
.settings
Thumbs.db
distandroid
distios
distios
backend
2 changes: 1 addition & 1 deletion app/controllers/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function findmon(e, type, latkeep, latdelta, londelta) {
annotation = Map.createAnnotation({
latitude: item.latitude,
longitude: item.longitude,
title: item.itemLabel,
title: item.itemlabel,
myid: item.id,
leftButton: "/images/Info blue.png"
});
Expand Down
10 changes: 5 additions & 5 deletions app/controllers/home/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ var client = Ti.Network.createHTTPClient({
onload: function (e) {
var response = JSON.parse(this.responseText);

$.window.title = response.itemLabel;
$.window.title = response.itemlabel;
if (OS_ANDROID) {
$.window.addEventListener("open", function(){
$.window.activity.actionBar.title = response.itemLabel;
$.window.activity.actionBar.title = response.itemlabel;
});
}

if (response.image != null && response.image != undefined && response.image != "") {
$.image.image = "https://commons.wikimedia.org/w/thumb.php?f=" + response.image + "&w=1000";
}
if (response.itemDescription != null && response.itemDescription != undefined && response.itemDescription != "") {
$.description.text = response.itemDescription;
if (response.itemdescription != null && response.itemdescription != undefined && response.itemdescription != "") {
$.description.text = response.itemdescription;
} else {
$.description.hide();
}
Expand All @@ -37,7 +37,7 @@ var client = Ti.Network.createHTTPClient({
} else {
$.Wikipedia.hide();
}
$.title.text = response.itemLabel;
$.title.text = response.itemlabel;
$.Wikidata.addEventListener('click', function (e) {
Ti.Platform.openURL("https://www.wikidata.org/wiki/" + response.item);
});
Expand Down
8 changes: 3 additions & 5 deletions tiapp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
xmlns:ti="http://ti.appcelerator.org">
<id>it.wikimedia.wikilovesmonuments</id>
<name>WLM Italia</name>
<version>1.1.6</version>
<version>1.1.7</version>
<publisher>Ferdinando Traversa</publisher>
<url>https://www.wikilovesmonuments.wikimedia.it</url>
<description>App per trovare i monumenti partecipanti a Wiki Loves Monuments con la propria posizione.</description>
<copyright>Ferdinando Traversa - Apache License</copyright>
<icon>appicon.png</icon>
<fullscreen>false</fullscreen>
<navbar-hidden>true</navbar-hidden>
<navbar-hidden>false</navbar-hidden>
<analytics>true</analytics>
<guid>2234bc15-7129-44c8-9444-e86bff2a2a3d</guid>
<property name="ti.ui.defaultunit" type="string">dp</property>
Expand Down Expand Up @@ -38,8 +38,6 @@
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Abbiamo bisogno della tua posizione per poterti localizzare ed indicare quali sono i monumenti più vicini a te.</string>
<key>NSLocationAlwaysUsageDescription</key>
Expand All @@ -49,7 +47,7 @@
</ios>
<android
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:versionCode="11"
<manifest android:versionCode="12"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Expand Down

0 comments on commit d8d55e1

Please sign in to comment.