Changeset 6629
- Timestamp:
- 12/11/2012 02:21:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/js/buddypress.js
r6555 r6629 50 50 51 51 /* New posts */ 52 jq("#aw-whats-new-submit"). click(function() {52 jq("#aw-whats-new-submit").live( 'click', function() { 53 53 var button = jq(this); 54 54 var form = button.parent().parent().parent().parent(); … … 141 141 142 142 /* List tabs event delegation */ 143 jq('div.activity-type-tabs'). click(function(event) {143 jq('div.activity-type-tabs').live( 'click', function(event) { 144 144 var target = jq(event.target).parent(); 145 145 … … 183 183 184 184 /* Stream event delegation */ 185 jq('div.activity'). click(function(event) {185 jq('div.activity').live( 'click', function(event) { 186 186 var target = jq(event.target); 187 187 … … 354 354 355 355 /* Activity list event delegation */ 356 jq('div.activity'). click(function(event) {356 jq('div.activity').live( 'click', function(event) { 357 357 var target = jq(event.target); 358 358 … … 605 605 606 606 /* Link for cancelling comment forms */ 607 jq('.ac-reply-cancel'). click(function() {607 jq('.ac-reply-cancel').live( 'click', function() { 608 608 jq(this).closest('.ac-form').slideUp( 200 ); 609 609 return false; … … 613 613 614 614 /* The search form on all directory pages */ 615 jq('.dir-search'). click(function(event) {615 jq('.dir-search').live( 'click', function(event) { 616 616 if ( jq(this).hasClass('no-ajax') ) 617 617 return; … … 632 632 633 633 /* When a navigation tab is clicked - e.g. | All Groups | My Groups | */ 634 jq('div.item-list-tabs'). click(function(event) {634 jq('div.item-list-tabs').live( 'click', function(event) { 635 635 if ( jq(this).hasClass('no-ajax') ) 636 636 return; … … 680 680 681 681 /* All pagination links run through this function */ 682 jq('#content'). click(function(event) {682 jq('#content').live( 'click', function(event) { 683 683 var target = jq(event.target); 684 684 … … 720 720 721 721 /* Hit the "New Topic" button on the forums directory page */ 722 jq('a.show-hide-new'). click(function() {722 jq('a.show-hide-new').live( 'click', function() { 723 723 if ( !jq('#new-topic-post').length ) 724 724 return false; … … 735 735 736 736 /* Cancel the posting of a new forum topic */ 737 jq('#submit_topic_cancel'). click(function() {737 jq('#submit_topic_cancel').live( 'click', function() { 738 738 if ( !jq('#new-topic-post').length ) 739 739 return false; … … 744 744 745 745 /* Clicking a forum tag */ 746 jq('#forum-directory-tags a'). click(function() {746 jq('#forum-directory-tags a').live( 'click', function() { 747 747 bp_filter_request( 'forums', 'tags', jq.cookie('bp-forums-scope'), 'div.forums', jq(this).html().replace( / /g, '-' ), 1, jq.cookie('bp-forums-extras') ); 748 748 return false; … … 752 752 753 753 /* Select a user from the list of friends and add them to the invite list */ 754 jq("#invite-list input"). click(function() {754 jq("#invite-list input").live( 'click', function() { 755 755 jq('.ajax-loader').toggle(); 756 756 … … 841 841 842 842 /* Accept and Reject friendship request buttons */ 843 jq("#friend-list a.accept, #friend-list a.reject"). click(function() {843 jq("#friend-list a.accept, #friend-list a.reject").live( 'click', function() { 844 844 var button = jq(this); 845 845 var li = jq(this).parents('#friend-list li'); … … 990 990 991 991 /** Message search*/ 992 jq('.message-search'). click(function(event) {992 jq('.message-search').live( 'click', function(event) { 993 993 if ( jq(this).hasClass('no-ajax') ) 994 994 return; … … 1130 1130 1131 1131 /* Bulk delete messages */ 1132 jq("#delete_inbox_messages, #delete_sentbox_messages"). click(function() {1132 jq("#delete_inbox_messages, #delete_sentbox_messages").live( 'click', function() { 1133 1133 checkboxes_tosend = ''; 1134 1134 checkboxes = jq("#message-threads tr td input[type='checkbox']"); … … 1169 1169 1170 1170 /* Close site wide notices in the sidebar */ 1171 jq("#close-notice"). click(function() {1171 jq("#close-notice").live( 'click', function() { 1172 1172 jq(this).addClass('loading'); 1173 1173 jq('#sidebar div.error').remove(); … … 1200 1200 1201 1201 /* Clear BP cookies on logout */ 1202 jq('a.logout'). click(function() {1202 jq('a.logout').live( 'click', function() { 1203 1203 jq.cookie('bp-activity-scope', null, { 1204 1204 path: '/'
Note: See TracChangeset
for help on using the changeset viewer.