Skip to:
Content

BuddyPress.org

Changeset 12857


Ignore:
Timestamp:
03/03/2021 05:00:00 AM (6 years ago)
Author:
imath
Message:

Remove a call to a deprecated jQuery method.

Props WeddyWood

Fixes #8439

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r12558 r12857  
    301301
    302302        <script type="text/javascript">
    303                 jQuery(window).load( function(){
    304                         jQuery('#avatar-to-crop').Jcrop({
     303                jQuery( window ).on( 'load', function() {
     304                        jQuery( '#avatar-to-crop' ).Jcrop( {
    305305                                onChange: showPreview,
    306306                                onSelect: updateCoords,
    307307                                aspectRatio: <?php echo (int) $aspect_ratio; ?>,
    308308                                setSelect: [ <?php echo (int) $crop_left; ?>, <?php echo (int) $crop_top; ?>, <?php echo (int) $crop_right; ?>, <?php echo (int) $crop_bottom; ?> ]
    309                         });
    310                 });
     309                        } );
     310                } );
    311311
    312312                function updateCoords(c) {
Note: See TracChangeset for help on using the changeset viewer.