Skip to:
Content

BuddyPress.org

Changeset 1912


Ignore:
Timestamp:
09/21/2009 09:45:32 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1054 props jjj

File:
1 edited

Legend:

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

    r1905 r1912  
    122122        function showPreview(coords) {
    123123            if ( parseInt(coords.w) > 0 ) {
    124                 var rx = 100 / coords.w;
    125                 var ry = 100 / coords.h;
     124                var rx = <?php echo (int) constant( 'BP_AVATAR_FULL_WIDTH' ) ?> / coords.w;
     125                var ry = <?php echo (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) ?> / coords.h;
    126126
    127127                jQuery('#avatar-crop-preview').css({
Note: See TracChangeset for help on using the changeset viewer.