Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 302: | Rivi 302: | ||
function Jw_FormFieldResizer() { | function Jw_FormFieldResizer() { | ||
jQuery( '.simpleupload_prv' ).each( function() { | if ( jQuery( '.simpleupload_prv' ).lenght > 0 ) { | ||
jQuery( '.choose-img-container' ).hide(); | |||
jQuery( '.simpleupload_prv' ).each( function() { | |||
var el = jQuery( this ); | |||
if ( el.prev().hasClass( 'focalpoint' ) ) { | |||
// do nothing | |||
} else { | |||
if ( el.next().hasClass( 'showCenterPos' ) ) { | |||
el.wrap('<div style="position: relative; display: inline-block; border: 5px solid var(--syke-red);"></div>'); | |||
el.before( '<div class="focalpoint" style="left: 50%; top: 50%;"></div>' ); | |||
} | |||
jQuery( this ).prop( 'src', jQuery( this ).prop( 'src' ).replace( 'width=100', 'width=244' ) ); | |||
} | } | ||
}); | |||
} else { | |||
} | jQuery( '.choose-img-container' ).show(); | ||
} | |||
jQuery('.jwResize').each(function() { | jQuery('.jwResize').each(function() { | ||


