diff --git a/docu/changelog.md b/docu/changelog.md index 444d3777..1730dfa8 100644 --- a/docu/changelog.md +++ b/docu/changelog.md @@ -2,6 +2,7 @@

+v0.15.4   v0.15.3   v0.15.2   v0.15.1   @@ -42,6 +43,23 @@ Earlier changelog   +--- +## v0.15.4: +   
+ +
+(09.01.2024)
+released by 2Abendsegler
+
+ --- ## v0.15.3:    
diff --git a/gc_little_helper_II.user.js b/gc_little_helper_II.user.js index aea74f6c..6c500d83 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.3 +// @version 0.15.4 //<-- $$000 // @copyright 2010-2016 Torsten Amshove, 2016-2024 2Abendsegler, 2017-2021 Ruko2010, 2019-2024 capoaira // @author Torsten Amshove; 2Abendsegler; Ruko2010; capoaira @@ -4826,7 +4826,6 @@ var mainGC = function() { const ind = pageData.logTypes.map(v => v.value).indexOf(Number(logtype)); // Return if no logtype is selected or selected logtype is not available for this cache. if (logtype == -1 || ind == -1) return; - // Use React properties to set default logtype. const mem_props = logtype_selection[obj_keys[0]].child.memoizedProps; const option = mem_props.options[ind]; @@ -4836,7 +4835,7 @@ var mainGC = function() { waitCount++; if (waitCount <= 1000) setTimeout(function(){setDefaultLogtype(waitCount);}, 10); } try { - if (!isEdit && typeof pageData !== 'undefined' && typeof pageData.logTypes !== 'undefined' + if (!isEdit && typeof pageData !== 'undefined' && typeof pageData.isEvent !== 'undefined' && typeof pageData.logTypes !== 'undefined' && ((!isDraft && !isTB && (settings_default_logtype || settings_default_logtype_event || settings_default_logtype_owner)) || isTB && settings_default_tb_logtype)) { setDefaultLogtype(0); @@ -14818,8 +14817,8 @@ var mainGC = function() { //--> $$002 code += '