Skip to:
Content

BuddyPress.org

Changeset 6629


Ignore:
Timestamp:
12/11/2012 02:21:48 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Swap out .click() calls for .live() in bp-legacy buddypress.js.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/js/buddypress.js

    r6555 r6629  
    5050
    5151    /* New posts */
    52     jq("#aw-whats-new-submit").click( function() {
     52    jq("#aw-whats-new-submit").live( 'click', function() {
    5353        var button = jq(this);
    5454        var form = button.parent().parent().parent().parent();
     
    141141
    142142    /* List tabs event delegation */
    143     jq('div.activity-type-tabs').click( function(event) {
     143    jq('div.activity-type-tabs').live( 'click', function(event) {
    144144        var target = jq(event.target).parent();
    145145
     
    183183
    184184    /* Stream event delegation */
    185     jq('div.activity').click( function(event) {
     185    jq('div.activity').live( 'click', function(event) {
    186186        var target = jq(event.target);
    187187
     
    354354
    355355    /* Activity list event delegation */
    356     jq('div.activity').click( function(event) {
     356    jq('div.activity').live( 'click', function(event) {
    357357        var target = jq(event.target);
    358358
     
    605605   
    606606    /* Link for cancelling comment forms */
    607     jq('.ac-reply-cancel').click( function() {
     607    jq('.ac-reply-cancel').live( 'click', function() {
    608608        jq(this).closest('.ac-form').slideUp( 200 );
    609609        return false;
     
    613613
    614614    /* The search form on all directory pages */
    615     jq('.dir-search').click( function(event) {
     615    jq('.dir-search').live( 'click', function(event) {
    616616        if ( jq(this).hasClass('no-ajax') )
    617617            return;
     
    632632
    633633    /* 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) {
    635635        if ( jq(this).hasClass('no-ajax') )
    636636            return;
     
    680680
    681681    /* All pagination links run through this function */
    682     jq('#content').click( function(event) {
     682    jq('#content').live( 'click', function(event) {
    683683        var target = jq(event.target);
    684684
     
    720720
    721721    /* 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() {
    723723        if ( !jq('#new-topic-post').length )
    724724            return false;
     
    735735
    736736    /* Cancel the posting of a new forum topic */
    737     jq('#submit_topic_cancel').click( function() {
     737    jq('#submit_topic_cancel').live( 'click', function() {
    738738        if ( !jq('#new-topic-post').length )
    739739            return false;
     
    744744
    745745    /* Clicking a forum tag */
    746     jq('#forum-directory-tags a').click( function() {
     746    jq('#forum-directory-tags a').live( 'click', function() {
    747747        bp_filter_request( 'forums', 'tags', jq.cookie('bp-forums-scope'), 'div.forums', jq(this).html().replace( / /g, '-' ), 1, jq.cookie('bp-forums-extras') );
    748748        return false;
     
    752752
    753753    /* 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() {
    755755        jq('.ajax-loader').toggle();
    756756
     
    841841
    842842    /* 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() {
    844844        var button = jq(this);
    845845        var li = jq(this).parents('#friend-list li');
     
    990990
    991991    /** Message search*/
    992     jq('.message-search').click( function(event) {
     992    jq('.message-search').live( 'click', function(event) {
    993993        if ( jq(this).hasClass('no-ajax') )
    994994            return;
     
    11301130
    11311131    /* Bulk delete messages */
    1132     jq("#delete_inbox_messages, #delete_sentbox_messages").click( function() {
     1132    jq("#delete_inbox_messages, #delete_sentbox_messages").live( 'click', function() {
    11331133        checkboxes_tosend = '';
    11341134        checkboxes = jq("#message-threads tr td input[type='checkbox']");
     
    11691169
    11701170    /* Close site wide notices in the sidebar */
    1171     jq("#close-notice").click( function() {
     1171    jq("#close-notice").live( 'click', function() {
    11721172        jq(this).addClass('loading');
    11731173        jq('#sidebar div.error').remove();
     
    12001200
    12011201    /* Clear BP cookies on logout */
    1202     jq('a.logout').click( function() {
     1202    jq('a.logout').live( 'click', function() {
    12031203        jq.cookie('bp-activity-scope', null, {
    12041204            path: '/'
Note: See TracChangeset for help on using the changeset viewer.