180,10 → 180,12 |
const thisFieldKey = $( this ).data( 'key' ), |
fileMimeType = $( this ).data( 'mime-type' ), |
label = 'Aide pour : ' + $( this ).data( 'name' ); |
let content = ''; |
|
if( fileMimeType.match( 'image' ) ) { |
const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' ), |
content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />'; |
const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' ); |
|
content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />'; |
} |
lthis.activerModale( label, content ); |
}); |