diff --git src/bp-activity/js/mentions.js src/bp-activity/js/mentions.js
index 17407faaf..3fbdd9d0c 100644
|
|
window.bp = window.bp || {}; |
20 | 20 | * @since 2.1.0 |
21 | 21 | */ |
22 | 22 | $.fn.bp_mentions = function( options ) { |
23 | | if ( $.isArray( options ) ) { |
| 23 | if ( Array.isArray( options ) ) { |
24 | 24 | options = { data: options }; |
25 | 25 | } |
26 | 26 | |
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() { |
124 | 124 | inputs[ input.name ] = input.value; |
125 | 125 | } else { |
126 | 126 | // Checkboxes/dropdown list can have multiple selected value |
127 | | if ( ! jq.isArray( inputs[ input.name ] ) ) { |
| 127 | if ( ! Array.isArray( inputs[ input.name ] ) ) { |
128 | 128 | inputs[ input.name ] = new Array( inputs[ input.name ], input.value ); |
129 | 129 | } else { |
130 | 130 | inputs[ input.name ].push( input.value ); |
… |
… |
jq(document).ready( function() { |
800 | 800 | }); |
801 | 801 | |
802 | 802 | /* Escape Key Press for cancelling comment forms */ |
803 | | jq(document).keydown( function(e) { |
| 803 | jq(document).on( 'keydown', function(e) { |
804 | 804 | e = e || window.event; |
805 | 805 | if (e.target) { |
806 | 806 | element = e.target; |
… |
… |
jq(document).ready( function() { |
1634 | 1634 | }); |
1635 | 1635 | |
1636 | 1636 | /* 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() { |
1638 | 1638 | jq(this).addClass('sfhover'); |
1639 | 1639 | }); |
1640 | 1640 | |
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() { |
1642 | 1642 | jq(this).removeClass('sfhover'); |
1643 | 1643 | }); |
1644 | 1644 | |
diff --git src/bp-xprofile/admin/js/admin.js src/bp-xprofile/admin/js/admin.js
index 07d7cc0fd..0b85642a8 100644
|
|
function titleHint( id ) { |
171 | 171 | titleprompt.addClass('screen-reader-text'); |
172 | 172 | } |
173 | 173 | |
174 | | titleprompt.click(function(){ |
| 174 | titleprompt.on( 'click', function(){ |
175 | 175 | jQuery(this).addClass('screen-reader-text'); |
176 | 176 | title.focus(); |
177 | 177 | }); |
178 | 178 | |
179 | | title.blur(function(){ |
| 179 | title.on( 'blur', function(){ |
180 | 180 | if ( '' === this.value ) { |
181 | 181 | titleprompt.removeClass('screen-reader-text'); |
182 | 182 | } |
183 | | }).focus(function(){ |
| 183 | }).on( 'focus', function(){ |
184 | 184 | titleprompt.addClass('screen-reader-text'); |
185 | | }).keydown(function(e){ |
| 185 | }).on( 'keydown', function(e){ |
186 | 186 | titleprompt.addClass('screen-reader-text'); |
187 | 187 | jQuery(this).unbind(e); |
188 | 188 | }); |
… |
… |
jQuery( document ).ready( function() { |
295 | 295 | |
296 | 296 | // Clicking into the custom date format field should select the Custom radio button. |
297 | 297 | var $date_format_custom = jQuery( '#date-format-custom' ); |
298 | | $date_format_custom_value.focus( function() { |
| 298 | $date_format_custom_value.on( 'focus', function() { |
299 | 299 | $date_format_custom.prop( 'checked', 'checked' ); |
300 | 300 | } ); |
301 | 301 | |