Changeset 12170
- Timestamp:
- 06/16/2018 09:02:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/js/buddypress-group-invites.js
r12082 r12170 1 1 /* global wp, bp, BP_Nouveau, _, Backbone */ 2 /* @version 3.0.0 */2 /* @version 4.0.0 */ 3 3 window.wp = window.wp || {}; 4 4 window.bp = window.bp || {}; … … 361 361 this.collection.on( 'add', this.outputNav, this ); 362 362 this.collection.on( 'change:hide', this.showHideNavItem, this ); 363 364 window.onbeforeunload = _.bind( this.confirmQuit, this ); 363 365 }, 364 366 … … 425 427 } 426 428 }, this ); 429 }, 430 431 confirmQuit: function() { 432 if ( bp.Nouveau.GroupInvites.invites && bp.Nouveau.GroupInvites.invites.length ) { 433 $( '[data-nav="invites"]' ).focus(); 434 435 return false; 436 } 427 437 } 428 438 } );
Note: See TracChangeset
for help on using the changeset viewer.