Subversion Repositories eFlore/Applications.cel

Rev

Rev 3863 | Rev 3901 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3863 Rev 3869
Line 178... Line 178...
178
 
178
 
179
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
179
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
180
    const thisFieldKey = $( this ).data( 'key' ),
180
    const thisFieldKey = $( this ).data( 'key' ),
181
        fileMimeType   = $( this ).data( 'mime-type' ),
181
        fileMimeType   = $( this ).data( 'mime-type' ),
182
        label          = 'Aide pour : ' +  $( this ).data( 'name' );
-
 
183
 
182
        label          = 'Aide pour : ' +  $( this ).data( 'name' );
Line 184... Line 183...
184
    let content = '';
183
    let content = '';
185
 
184
 
Line 186... Line 185...
186
    if( fileMimeType.match( 'image' ) ) {
185
    if( fileMimeType.match( 'image' ) ) {
187
    	const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
186
      const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
188
 
187
 
189
        content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
188
      content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
190
      }
189
    }
Line 191... Line 190...
191
    lthis.activerModale( label, content );
190
    lthis.activerModale( label, content );