UNPKG

node-red-contrib-knx-ultimate

Version:

Control your KNX and KNX Secure intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.

23 lines (21 loc) 572 B
jQuery( function($) { /** * Add accessibility attributes on invalid field * * @since 1.5.0.9 */ window.Parsley.on('field:error', function() { this.$element.attr( 'aria-describedby', this._ui.errorsWrapperId ).attr( 'aria-invalid', 'true' ); this._ui.$errorsWrapper.attr( 'aria-live', 'polite' ); }); /** * If field is valid and was marked invalid, remove aria.invalid * * @since 1.5.0.9 */ window.Parsley.on( 'field:success', function () { if( this.$element.attr( 'aria-invalid' ) ){ this.$element.removeAttr( 'aria-invalid' ); } }); });