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.3.8 _includes/forms/error-container.html
dta_rapid-1.3.7 _includes/forms/error-container.html
dta_rapid-1.3.6 _includes/forms/error-container.html
dta_rapid-1.3.5 _includes/forms/error-container.html
dta_rapid-1.3.3 _includes/forms/error-container.html
dta_rapid-1.3.2 _includes/forms/error-container.html
dta_rapid-1.3.1 _includes/forms/error-container.html
dta_rapid-1.3.0 _includes/forms/error-container.html
dta_rapid-1.2.6 _includes/forms/error-container.html
dta_rapid-1.0.2 _includes/forms/error-container.html
dta_rapid-1.2.5 _includes/forms/error-container.html
dta_rapid-1.2.4 _includes/forms/error-container.html
dta_rapid-1.2.3 _includes/forms/error-container.html
dta_rapid-1.2.2 _includes/forms/error-container.html
dta_rapid-1.2.1 _includes/forms/error-container.html
dta_rapid-1.1.2 _includes/forms/error-container.html
dta_rapid-1.1.1 _includes/forms/error-container.html
dta_rapid-1.2.0 _includes/forms/error-container.html
dta_rapid-1.1.0 _includes/forms/error-container.html
dta_rapid-1.0.1 _includes/forms/error-container.html