diff --git a/docu/changelog.md b/docu/changelog.md
index 10975e7c..a85f4aba 100644
--- a/docu/changelog.md
+++ b/docu/changelog.md
@@ -2,6 +2,7 @@
+v0.15.1
v0.15
v0.14.6
v0.14.5
@@ -39,6 +40,73 @@
Earlier changelog
+---
+## v0.15.1:
+
+
+ -
+ New: [Log View] Hide share button. [2483 / 2Abendsegler]
+ New: [Log View] VIP, VUP, mail, message icons for logged user. [2497 / 2Abendsegler]
+ New: [Log View] Build copy to clipboard icon for logtext. [2489 / 2Abendsegler]
+
+
+ -
+ Hide share button.
+ Settings -> Global - Hiding:
+
+ This parameter is not new. If you want to use this feature, maybe you have to activate it.
+
+ -
+ VIP, VUP, mail, message icons for logged user.
+ Settings -> Global - User Related Layout:
+
+ These parameter are not new. If you want to use these features, maybe you have to activate them.
+
+ -
+ Copy logtext to clipboard.
+
+
+
+ -
+ New: [Cache Owner Dashboard] Hide survey like it is done for the green feedback icon. [2482 / 2Abendsegler]
+
+ Settings -> Global - Hiding:
+
+ This parameter is not new. If you want to use this feature, maybe you have to activate it.
+
+ -
+ Change: [New Dashboard, Log Form] The edit links for the logs in the dashboard should be changed to the new log form. [2473 / capoaira]
+
+ -
+ Fix: [Log Form] Submitting an image name in a new log leads to a blank page. [2500 / 2Abendsegler]
+
+ -
+ Fix: [Log Form] Signature is insert into edit form. [2475 / capoaira]
+
+ -
+ Fix: [Log Edit] VIP, VUP, message, mail icons not available on edit log page if calling from edit button on view log page. [2492 / 2Abendsegler]
+
+ -
+ Fix: [Log Form] On the edit log page, GClh is not running, but the GClh header is available on the page. [2472 / capoaira]
+
+ -
+ Fix: [Log Form] Determine user data for id '__NEXT_DATA__' run into error. [2494 / 2Abendsegler]
+
+ -
+ Fix: [Log Form] Uncaught TypeError: Window.getComputedStyle: Argument 1 is not an object. [2474 / 2Abendsegler]
+
+ -
+ Fix: [New Dashboard] No edit links to own TB logs in dashboard. [2484 / capoaira]
+
+ -
+ Fix: [New Dashboard] Clicking on a TB in Latest Activity area causes an Uncaught TypeError. [2467 / 2Abendsegler]
+
+
+
+(02.12.2023)
+released by 2Abendsegler
+
+
---
## v0.15:
diff --git a/gc_little_helper_II.user.js b/gc_little_helper_II.user.js
index ce7879f0..258502c2 100644
--- a/gc_little_helper_II.user.js
+++ b/gc_little_helper_II.user.js
@@ -2,7 +2,7 @@
// @name GC little helper II
// @description Some little things to make life easy (on www.geocaching.com).
//--> $$000
-// @version 0.15
+// @version 0.15.1
//<-- $$000
// @copyright 2010-2016 Torsten Amshove, 2016-2023 2Abendsegler, 2017-2021 Ruko2010, 2019-2023 capoaira
// @author Torsten Amshove; 2Abendsegler; Ruko2010; capoaira
@@ -4735,9 +4735,8 @@ var mainGC = function() {
try {
var nextData = JSON.parse($('#__NEXT_DATA__')[0].innerText);
} catch(e) {}
- if (typeof nextData !== 'undefined' && nextData.props && nextData.props.pageProps) {
+ if (typeof nextData !== 'undefined' && typeof nextData.props !== 'undefined' && typeof nextData.props.pageProps !== 'undefined') {
var pageData = nextData.props.pageProps;
- if (pageData.isEvent) var isEvent = pageData.isEvent;
}
}
let css = '';
@@ -4798,7 +4797,7 @@ var mainGC = function() {
if ($('.hidden-by a')[0] && $('.hidden-by a')[0].innerText) {
// Get default logtype.
let logtype = decode_innerText($('.hidden-by a')[0]) == global_me ? settings_default_logtype_owner
- : isEvent ? settings_default_logtype_event
+ : pageData.isEvent ? settings_default_logtype_event
: isTB ? settings_default_tb_logtype : settings_default_logtype;
// Return if no logtype is selected or selected logtype is not possible.
if (logtype == -1 || !pageData.logTypes.some(e => e.value == logtype)) return;
@@ -4809,7 +4808,7 @@ var mainGC = function() {
waitCount++; if (waitCount <= 1000) setTimeout(function(){setDefaultLogtype(waitCount);}, 10);
}
try {
- if (!document.location.href.match(/logType=/i) && typeof pageData != 'undefined'
+ if (!document.location.href.match(/logType=/i) && typeof pageData !== 'undefined' && typeof pageData.isEvent !== 'undefined' && typeof pageData.logTypes !== 'undefined' && typeof pageData.logTypes.some !== 'undefined'
&& ((!isDraft && !isTB && (settings_default_logtype || settings_default_logtype_event || settings_default_logtype_owner))
|| isTB && settings_default_tb_logtype)) {
setDefaultLogtype(0);
@@ -5273,9 +5272,8 @@ var mainGC = function() {
try {
var nextData = JSON.parse($('#__NEXT_DATA__')[0].innerText);
} catch(e) {}
- if (typeof nextData !== 'undefined' && nextData.props && nextData.props.pageProps) {
+ if (typeof nextData !== 'undefined' && typeof nextData.props !== 'undefined' && typeof nextData.props.pageProps !== 'undefined') {
var pageData = nextData.props.pageProps;
- if (pageData.logText) var logText = pageData.logText;
}
}
let css = '';
@@ -5293,17 +5291,19 @@ var mainGC = function() {
// Build copy to clipboard icon for logtext.
function buildCopyToClipboardForLogtext(waitCount) {
- if (logText && logText != '' && $('li.meta-data-item:last span.meta-data-label')[0] && !$('#gclh_copyLogtextToClipboard')[0]) {
+ if ($('li.meta-data-item:last span.meta-data-label')[0] && !$('#gclh_copyLogtextToClipboard')[0]) {
$('li.meta-data-item:last span.meta-data-label').after('');
- addCopyToClipboardLink(logText, $('#gclh_copyLogtextToClipboard span')[0], 'Logtext', 'float: right; margin-right: 8px;');
+ addCopyToClipboardLink(pageData.logText, $('#gclh_copyLogtextToClipboard span')[0], 'Logtext', 'float: right; margin-right: 8px;');
}
waitCount++; if (waitCount <= 100) setTimeout(function(){buildCopyToClipboardForLogtext(waitCount);}, 100);
}
try {
- buildCopyToClipboardForLogtext(0);
- css += 'li.meta-data-item:last-child {display: block;}';
- css += 'li.meta-data-item:last-child > div {display: inline-block; margin-right: 8px;}';
- css += 'li.meta-data-item:last-child > svg {display: inline-block; margin-right: 8px; margin-bottom: -2px;}';
+ if (typeof pageData !== 'undefined' && typeof pageData.logText !== 'undefined' && pageData.logText != '') {
+ buildCopyToClipboardForLogtext(0);
+ css += 'li.meta-data-item:last-child {display: block;}';
+ css += 'li.meta-data-item:last-child > div {display: inline-block; margin-right: 8px;}';
+ css += 'li.meta-data-item:last-child > svg {display: inline-block; margin-right: 8px; margin-bottom: -2px;}';
+ }
} catch(e) {gclh_error("Build copy to clipboard icon for logtext in improve log view",e);}
// Append the style.
@@ -14109,7 +14109,7 @@ var mainGC = function() {
// Weihnachten 2023.
if (month == 12 && year == 2023) {
var max = 0;
- if (date >= 24 && date <= 26) max = 100;
+ if ((date >= 5 && date <= 6) || (date >= 24 && date <= 26)) max = 100;
if (max > 0) {
function checkChristmasData(waitCount) {
if ($('.gclh_latest_log').length > 0) {
@@ -14515,8 +14515,8 @@ var mainGC = function() {
//--> $$002
code += '";
html += "";
diff --git a/images/0.15.1/Screen01.jpg b/images/0.15.1/Screen01.jpg
new file mode 100644
index 00000000..6ef28987
Binary files /dev/null and b/images/0.15.1/Screen01.jpg differ
diff --git a/images/0.15.1/Screen02.jpg b/images/0.15.1/Screen02.jpg
new file mode 100644
index 00000000..eb81c152
Binary files /dev/null and b/images/0.15.1/Screen02.jpg differ
diff --git a/images/0.15.1/Screen03.jpg b/images/0.15.1/Screen03.jpg
new file mode 100644
index 00000000..e31fbcf6
Binary files /dev/null and b/images/0.15.1/Screen03.jpg differ
diff --git a/images/0.15.1/Screen04.jpg b/images/0.15.1/Screen04.jpg
new file mode 100644
index 00000000..8e408c00
Binary files /dev/null and b/images/0.15.1/Screen04.jpg differ
diff --git a/images/0.15.1/Screen05.jpg b/images/0.15.1/Screen05.jpg
new file mode 100644
index 00000000..4361b32b
Binary files /dev/null and b/images/0.15.1/Screen05.jpg differ
diff --git a/last_version.txt b/last_version.txt
index 2856407c..e815b861 100644
--- a/last_version.txt
+++ b/last_version.txt
@@ -1 +1 @@
-0.15
+0.15.1