213,12 → 213,12 |
// To achieve the same effect, use some custom JavaScript |
$( '#fenetre-modal' ).off( 'shown.bs.modal' ).on( 'shown.bs.modal' , function () { |
$( '#myInput' ).trigger( 'focus' ); |
if( lthis.valOk( $( '#modale-aide-img' ) ) ) { |
if( valOk( $( '#modale-aide-img' ) ) ) { |
lthis.redimentionnerImgAide(); |
$( window ).on( 'resize', lthis.redimentionnerImgAide.bind( lthis ) ); |
} |
}); |
if ( this.valOk( buttons ) ) { |
if ( valOk( buttons ) ) { |
buttonsHtml = ''; |
$.each( buttons, function( i, button ) { |
dismiss = button.dismiss ? 'data-dismiss="modal"' : ''; |
290,7 → 290,7 |
otherId = PREFIX + dataName; |
dataLabel = $( '.select' ).data( 'label' ); |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel ); |
} |
} else if ( $( this ).is( ':checked' ) ) { |
299,7 → 299,7 |
dataLabel = $( this ).data( 'label' ); |
element = $( this ).data( 'element' ); |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+ otherId ) ) ) { |
if ( !valOk( $( '#'+ otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel ); |
} |
} |
311,7 → 311,7 |
dataLabel = $( this ).data( 'label' ); |
if( 'other' === $( this ).val() ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel ); |
} |
} else { |
327,7 → 327,7 |
dataLabel = $( this ).data( 'label' ); |
if( 'other' === $( this ).val() ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), 'radio', dataName, dataLabel ); |
} |
} else { |
344,7 → 344,7 |
element = $( this ).data( 'element' ); |
if( $( this ).is( ':checked' ) ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel ); |
} |
} else { |