From f9947fbe0030a9b2b87d5aab53045da5bbdaeed5 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Fri, 31 May 2013 15:32:47 +0200 Subject: fix #2815 trackable logging --- main/src/cgeo/geocaching/connector/gc/GCParser.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index d4e1999..ca29f27 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -1159,17 +1159,17 @@ public abstract class GCParser { "ctl00$ContentBody$LogBookPanel1$tbCode", trackingCode); Login.putViewstates(params, viewstates); if (currentDate.get(Calendar.YEAR) == year && (currentDate.get(Calendar.MONTH) + 1) == month && currentDate.get(Calendar.DATE) == day) { - params.put("ctl00$ContentBody$LogBookPanel1$DateTimeLogged", ""); + params.put("ctl00$ContentBody$LogBookPanel1$uxDateVisited", ""); } else { - params.put("ctl00$ContentBody$LogBookPanel1$DateTimeLogged", Integer.toString(month) + "/" + Integer.toString(day) + "/" + Integer.toString(year)); + params.put("ctl00$ContentBody$LogBookPanel1$uxDateVisited", Integer.toString(month) + "/" + Integer.toString(day) + "/" + Integer.toString(year)); } params.put( - "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Day", Integer.toString(day), - "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Month", Integer.toString(month), - "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Year", Integer.toString(year), + "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Day", Integer.toString(day), + "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Month", Integer.toString(month), + "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Year", Integer.toString(year), "ctl00$ContentBody$LogBookPanel1$uxLogInfo", logInfo, - "ctl00$ContentBody$LogBookPanel1$LogButton", "Submit Log Entry", - "ctl00$ContentBody$uxVistOtherListingGC", ""); + "ctl00$ContentBody$LogBookPanel1$btnSubmitLog", "Submit Log Entry", + "ctl00$ContentBody$uxVistOtherTrackableTB", ""); final String uri = new Uri.Builder().scheme("http").authority("www.geocaching.com").path("/track/log.aspx").encodedQuery("wid=" + tbid).build().toString(); final String page = Login.postRequestLogged(uri, params); -- cgit v1.1