Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3857 Rev 3861
Line 180... Line 180...
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' );
182
        label          = 'Aide pour : ' +  $( this ).data( 'name' );
Line 183... Line 183...
183
 
183
 
184
    if( fileMimeType.match( 'image' ) ) {
184
    if( fileMimeType.match( 'image' ) ) {
-
 
185
    	const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
185
      const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' ),
186
 
186
          content     = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
187
        content = '<img id="modale-aide-img" src="' + lthis.cheminFichiers + thisFieldKey + '.' + extention + '" style="" alt="' + thisFieldKey + '" />';
187
    }
188
      }
188
    lthis.activerModale( label, content );
189
    lthis.activerModale( label, content );
189
  });
190
  });
Line 190... Line 191...
190
};
191
};