Sha256: f3b0a048b724df9cec3d53eb23c039f901d3bdb19c477c4ec83c826520097e48

Contents?: true

Size: 393 Bytes

Versions: 63

Compression:

Stored size: 393 Bytes

Contents

<script>
// Switches error container on and off
document.addEventListener('DOMContentLoaded', function () {
  $('#form').parsley().on('field:validated', function () {
    var ok = $('.invalid').length === 0;
    $('#error-container').toggleClass('js-hidden', ok);
  });
});
</script>

<p class="uikit-page-alerts uikit-page-alerts--error js-hidden" id="error-container">{{ include.text }}</p>

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
dta_rapid-1.6.2 _includes/forms/error-container.html
dta_rapid-1.6.1 _includes/forms/error-container.html
dta_rapid-1.6.0 _includes/forms/error-container.html
dta_rapid-1.5.12 _includes/forms/error-container.html
dta_rapid-1.4.12 _includes/forms/error-container.html
dta_rapid-1.4.11 _includes/forms/error-container.html
dta_rapid-1.4.10 _includes/forms/error-container.html
dta_rapid-1.4.9 _includes/forms/error-container.html
dta_rapid-1.4.8 _includes/forms/error-container.html
dta_rapid-1.4.7 _includes/forms/error-container.html
dta_rapid-1.4.6 _includes/forms/error-container.html
dta_rapid-1.4.5 _includes/forms/error-container.html
dta_rapid-1.4.4 _includes/forms/error-container.html
dta_rapid-1.4.3 _includes/forms/error-container.html
dta_rapid-1.4.2 _includes/forms/error-container.html
dta_rapid-1.4.1 _includes/forms/error-container.html
dta_rapid-1.4.0 _includes/forms/error-container.html
dta_rapid-1.3.11 _includes/forms/error-container.html
dta_rapid-1.3.10 _includes/forms/error-container.html
dta_rapid-1.3.9 _includes/forms/error-container.html