Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3868 → Rev 3869

/branches/v3.01-serpe/widget/modules/saisie/squelettes/js/Utils.js
180,14 → 180,13
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 , '' );
const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
 
content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
}
content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
}
lthis.activerModale( label, content );
});
};