Skip to content

Commit

Permalink
fix warning on send log with gclh chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
capoaira committed Nov 26, 2023
1 parent 4c5385d commit 0ca010d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gc_little_helper_II.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4751,8 +4751,8 @@ var mainGC = function() {

// Achtung: Funktioniert leider nicht !!!!!
function buildWarningForGClhChanges(waitCount) {
if ($('.post-button-container .submit-button:not(.gclh_change_warning)')) {
$('.post-button-container .submit-button').addClass('gclh_change_warning');
if ($('.post-button-container:not(.gclh_change_warning)')[0]) {
$('.post-button-container').addClass('gclh_change_warning');
$('.post-button-container').bind('click', (e) => {
if (gclhChanges || keepGClhChanges) {
e.preventDefault();
Expand All @@ -4763,7 +4763,7 @@ var mainGC = function() {
}
waitCount++; if (waitCount <= 1000) setTimeout(function(){buildWarningForGClhChanges(waitCount);}, 10);
}
//buildWarningForGClhChanges(0);
buildWarningForGClhChanges(0);

// Default logtypes.
function setDefaultLogtype(waitCount) {
Expand Down

0 comments on commit 0ca010d

Please sign in to comment.