Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3852 Rev 3859
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' );
Line 182... Line 183...
182
        label          = 'Aide pour : ' +  $( this ).data( 'name' );
183
    let content = '';
183
 
184
 
-
 
185
    if( fileMimeType.match( 'image' ) ) {
184
    if( fileMimeType.match( 'image' ) ) {
186
      const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
185
      const extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' ),
187
 
186
          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 + '" />';
187
    }
189
    }
188
    lthis.activerModale( label, content );
190
    lthis.activerModale( label, content );