Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3545 Rev 3606
Line 121... Line 121...
121
				parts           = imgCheminTmp.split( '\\' ),
121
				parts           = imgCheminTmp.split( '\\' ),
122
				nomImage        = parts[ parts.length - 1 ],
122
				nomImage        = parts[ parts.length - 1 ],
123
				formatImgOk     = lthis.verifierFormat( nomImage ),
123
				formatImgOk     = lthis.verifierFormat( nomImage ),
124
				imgNonDupliquee = lthis.verifierDuplication( nomImage );
124
				imgNonDupliquee = lthis.verifierDuplication( nomImage );
Line 125... Line -...
125
 
-
 
126
 
125
 
127
			if( formatImgOk && imgNonDupliquee ) {
126
			if( formatImgOk && imgNonDupliquee ) {
128
				$( '#form-upload' ).ajaxSubmit( options );
127
				$( '#form-upload' ).ajaxSubmit( options );
129
				$( '#miniatures' ).append(
128
				$( '#miniatures' ).append(
130
					'<div class="miniature mr-3 miniature-chargement" data-image="' + nomImage + '">'+
129
					'<div class="miniature mr-3 miniature-chargement loading">'+
131
						'<img class="miniature-img chargement-img" alt="chargement" src="' + lthis.chargementImageIconeUrl + '" style="min-height:100%;"/>'+
130
						'<img class="miniature-img chargement-img" alt="chargement" src="' + lthis.chargementImageIconeUrl + '" style="min-height:100%;"/>'+
132
						'<a class="effacer-miniature">Supprimer</a>'+
131
						'<a class="effacer-miniature">Supprimer</a>'+
133
					'</div>'
132
					'</div>'
134
				);
133
				);
Line 602... Line 601...
602
	if ( this.debug ) {
601
	if ( this.debug ) {
603
		var debogage = $( 'debogage', reponse ).text();
602
		var debogage = $( 'debogage', reponse ).text();
604
	}
603
	}
Line 605... Line 604...
605
 
604
 
606
	var message        = $( 'message', reponse ).text();
605
	var message        = $( 'message', reponse ).text();
Line 607... Line 606...
607
		$blocMiniature = $( '#miniatures .miniature[data-image="' + $( 'image-nom', reponse ).text() + '"]');
606
		$blocMiniature = $( '#miniatures .miniature.loading').first();
608
 
607
 
609
	if( this.valOk( $blocMiniature ) ) {
608
	if( this.valOk( $blocMiniature ) ) {
610
		if ( this.valOk( message ) ) {
609
		if ( this.valOk( message ) ) {
Line 611... Line 610...
611
			$( '#miniature-msg' ).append( message );
610
			$( '.miniature-msg' ).append( message );
612
			$blocMiniature.remove();
611
			$blocMiniature.remove();
-
 
612
 
613
 
613
		} else {
614
		} else {
614
			this.creerWidgetMiniature( reponse, $blocMiniature );
615
			this.creerWidgetMiniature( reponse, $blocMiniature );
615
			$blocMiniature.removeClass('loading');
616
		}
616
		}
617
		if ( !lthis.valOk( $( '.miniature-chargement' ) ) ) {
617
		if ( !lthis.valOk( $( '.miniature-chargement' ) ) ) {