Skip to:
Content

BuddyPress.org

Ticket #8422: 8422.diff

File 8422.diff, 2.9 KB (added by boonebgorges, 4 years ago)
  • src/bp-activity/js/mentions.js

    diff --git src/bp-activity/js/mentions.js src/bp-activity/js/mentions.js
    index 17407faaf..3fbdd9d0c 100644
    window.bp = window.bp || {}; 
    2020         * @since 2.1.0
    2121         */
    2222        $.fn.bp_mentions = function( options ) {
    23                 if ( $.isArray( options ) ) {
     23                if ( Array.isArray( options ) ) {
    2424                        options = { data: options };
    2525                }
    2626
  • src/bp-templates/bp-legacy/js/buddypress.js

    diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
    index 338644fa1..02a696b9e 100644
    jq(document).ready( function() { 
    124124                                        inputs[ input.name ] = input.value;
    125125                                } else {
    126126                                        // Checkboxes/dropdown list can have multiple selected value
    127                                         if ( ! jq.isArray( inputs[ input.name ] ) ) {
     127                                        if ( ! Array.isArray( inputs[ input.name ] ) ) {
    128128                                                inputs[ input.name ] = new Array( inputs[ input.name ], input.value );
    129129                                        } else {
    130130                                                inputs[ input.name ].push( input.value );
    jq(document).ready( function() { 
    800800        });
    801801
    802802        /* Escape Key Press for cancelling comment forms */
    803         jq(document).keydown( function(e) {
     803        jq(document).on( 'keydown', function(e) {
    804804                e = e || window.event;
    805805                if (e.target) {
    806806                        element = e.target;
    jq(document).ready( function() { 
    16341634        });
    16351635
    16361636        /* Toolbar & wp_list_pages JavaScript IE6 hover class */
    1637         jq('#wp-admin-bar ul.main-nav li, #nav li').mouseover( function() {
     1637        jq('#wp-admin-bar ul.main-nav li, #nav li').on( 'mouseover', function() {
    16381638                jq(this).addClass('sfhover');
    16391639        });
    16401640
    1641         jq('#wp-admin-bar ul.main-nav li, #nav li').mouseout( function() {
     1641        jq('#wp-admin-bar ul.main-nav li, #nav li').on( 'mouseout', function() {
    16421642                jq(this).removeClass('sfhover');
    16431643        });
    16441644
  • src/bp-xprofile/admin/js/admin.js

    diff --git src/bp-xprofile/admin/js/admin.js src/bp-xprofile/admin/js/admin.js
    index 07d7cc0fd..0b85642a8 100644
    function titleHint( id ) { 
    171171                titleprompt.addClass('screen-reader-text');
    172172        }
    173173
    174         titleprompt.click(function(){
     174        titleprompt.on( 'click', function(){
    175175                jQuery(this).addClass('screen-reader-text');
    176176                title.focus();
    177177        });
    178178
    179         title.blur(function(){
     179        title.on( 'blur', function(){
    180180                if ( '' === this.value ) {
    181181                        titleprompt.removeClass('screen-reader-text');
    182182                }
    183         }).focus(function(){
     183        }).on( 'focus', function(){
    184184                titleprompt.addClass('screen-reader-text');
    185         }).keydown(function(e){
     185        }).on( 'keydown', function(e){
    186186                titleprompt.addClass('screen-reader-text');
    187187                jQuery(this).unbind(e);
    188188        });
    jQuery( document ).ready( function() { 
    295295
    296296        // Clicking into the custom date format field should select the Custom radio button.
    297297        var $date_format_custom = jQuery( '#date-format-custom' );
    298         $date_format_custom_value.focus( function() {
     298        $date_format_custom_value.on( 'focus', function() {
    299299                $date_format_custom.prop( 'checked', 'checked' );
    300300        } );
    301301