From: Vincent Vanwaelscappel Date: Tue, 20 Jul 2021 10:10:01 +0000 (+0200) Subject: wait #4597 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=af677aa6a382ae1782fb1e0d382b5ab87f3b8a0d;p=cubist_cms-back.git wait #4597 @0:15 --- diff --git a/src/resources/views/track-non-default-values.blade.php b/src/resources/views/track-non-default-values.blade.php index cbc0852..b6d2bad 100644 --- a/src/resources/views/track-non-default-values.blade.php +++ b/src/resources/views/track-non-default-values.blade.php @@ -6,6 +6,9 @@ markChangedFields(); }); markChangedFields(); + setTimeout(function () { + markChangedFields(); + }, 1000); }); function markChangedFields() { @@ -24,6 +27,23 @@ $(this).addClass('non-default'); } }); + + $('.dropzone').each(function () { + if ($(this).find('.dz-preview').length > 0) { + $(this).closest('.form-group').addClass('non-default'); + } else { + $(this).closest('.form-group').removeClass('non-default'); + } + }); + + $("#form_shortcuts nav a").each(function () { + var hasNonDefault = $($(this).attr('href')).closest('.card').find('.non-default').length > 0; + if (hasNonDefault) { + $(this).addClass('non-default'); + } else { + $(this).removeClass('non-default'); + } + }); } @@ -31,7 +51,7 @@ @push('crud_fields_styles') @endpush