Skip to:
Content

BuddyPress.org

Changeset 5756


Ignore:
Timestamp:
02/13/2012 05:21:58 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Unbind selectors from tokens in global.js Fixes #3821. Props hnla, boonebgorges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r5617 r5756  
    2323    /* @mention Compose Scrolling */
    2424    if ( jq.query.get('r') && jq('textarea#whats-new').length ) {
    25         jq('#whats-new-options').animate({height:'40px'});
    26         jq("form#whats-new-form textarea").animate({height:'50px'});
    27         jq.scrollTo( jq('textarea#whats-new'), 500, { offset:-125, easing:'easeOutQuad' } );
     25        jq('#whats-new-options').animate({
     26            height:'40px'
     27        });
     28        jq("form#whats-new-form textarea").animate({
     29            height:'50px'
     30        });
     31        jq.scrollTo( jq('textarea#whats-new'), 500, {
     32            offset:-125,
     33            easing:'easeOutQuad'
     34        } );
    2835        jq('textarea#whats-new').focus();
    2936    }
     
    3340    /* Textarea focus */
    3441    jq('#whats-new').focus( function(){
    35         jq("#whats-new-options").animate({height:'40px'});
    36         jq("form#whats-new-form textarea").animate({height:'50px'});
     42        jq("#whats-new-options").animate({
     43            height:'40px'
     44        });
     45        jq("form#whats-new-form textarea").animate({
     46            height:'50px'
     47        });
    3748        jq("#aw-whats-new-submit").prop("disabled", false);
    3849    });
     
    94105                jq("ul#activity-stream li:first").addClass('new-update');
    95106
    96                 if ( 0 != jq("div#latest-update").length ) {
     107                if ( 0 != jq("#latest-update").length ) {
    97108                    var l = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").html();
    98109                    var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
     
    106117                    u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
    107118
    108                     jq("div#latest-update").slideUp(300,function(){
    109                         jq("div#latest-update").html( u );
    110                         jq("div#latest-update").slideDown(300);
     119                    jq("#latest-update").slideUp(300,function(){
     120                        jq("#latest-update").html( u );
     121                        jq("#latest-update").slideDown(300);
    111122                    });
    112123                }
     
    117128            }
    118129
    119             jq("#whats-new-options").animate({height:'0px'});
    120             jq("form#whats-new-form textarea").animate({height:'20px'});
     130            jq("#whats-new-options").animate({
     131                height:'0px'
     132            });
     133            jq("form#whats-new-form textarea").animate({
     134                height:'20px'
     135            });
    121136            jq("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
    122137        });
     
    135150
    136151        /* Reset the page */
    137         jq.cookie( 'bp-activity-oldestpage', 1, {path: '/'} );
     152        jq.cookie( 'bp-activity-oldestpage', 1, {
     153            path: '/'
     154        } );
    138155
    139156        /* Activity Stream Tabs */
     
    192209
    193210                if ( 'fav' == type ) {
    194                     if ( !jq('div.item-list-tabs li#activity-favorites').length )
    195                         jq('div.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>');
     211                    if ( !jq('.item-list-tabs li#activity-favorites').length )
     212                        jq('.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>');
    196213
    197214                    target.removeClass('fav');
    198215                    target.addClass('unfav');
    199216
    200                     jq('div.item-list-tabs ul li#activity-favorites span').html( Number( jq('div.item-list-tabs ul li#activity-favorites span').html() ) + 1 );
     217                    jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) + 1 );
    201218                } else {
    202219                    target.removeClass('unfav');
    203220                    target.addClass('fav');
    204221
    205                     jq('div.item-list-tabs ul li#activity-favorites span').html( Number( jq('div.item-list-tabs ul li#activity-favorites span').html() ) - 1 );
    206 
    207                     if ( !Number( jq('div.item-list-tabs ul li#activity-favorites span').html() ) ) {
    208                         if ( jq('div.item-list-tabs ul li#activity-favorites').hasClass('selected') )
     222                    jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) - 1 );
     223
     224                    if ( !Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) ) {
     225                        if ( jq('.item-list-tabs ul li#activity-favorites').hasClass('selected') )
    209226                            bp_activity_request( null, null );
    210227
    211                         jq('div.item-list-tabs ul li#activity-favorites').remove();
     228                        jq('.item-list-tabs ul li#activity-favorites').remove();
    212229                    }
    213230                }
    214231
    215                 if ( 'activity-favorites' == jq( 'div.item-list-tabs li.selected').attr('id') )
     232                if ( 'activity-favorites' == jq( '.item-list-tabs li.selected').attr('id') )
    216233                    target.parent().parent().parent().slideUp(100);
    217234            });
     
    279296
    280297            if ( null == jq.cookie('bp-activity-oldestpage') )
    281                 jq.cookie('bp-activity-oldestpage', 1, {path: '/'} );
     298                jq.cookie('bp-activity-oldestpage', 1, {
     299                    path: '/'
     300                } );
    282301
    283302            var oldest_page = ( jq.cookie('bp-activity-oldestpage') * 1 ) + 1;
     
    291310            {
    292311                jq("#content li.load-more").removeClass('loading');
    293                 jq.cookie( 'bp-activity-oldestpage', oldest_page, {path: '/'} );
     312                jq.cookie( 'bp-activity-oldestpage', oldest_page, {
     313                    path: '/'
     314                } );
    294315                jq("#content ul.activity-list").append(response.contents);
    295316
     
    329350
    330351    /* Hide excess comments */
    331     if ( jq('div.activity-comments').length )
     352    if ( jq('.activity-comments').length )
    332353        bp_dtheme_hide_comments();
    333354
     
    359380
    360381            if ( ids[1] != 'comment' ) {
    361                 jq('div.activity-comments li#acomment-' + c_id).append( form );
     382                jq('.activity-comments li#acomment-' + c_id).append( form );
    362383            } else {
    363                 jq('li#activity-' + a_id + ' div.activity-comments').append( form );
    364             }
    365 
    366             if ( form.parent().hasClass( 'activity-comments' ) )
     384                jq('li#activity-' + a_id + ' .activity-comments').append( form );
     385            }
     386
     387            if ( form.parent().hasClass( 'activity-comments' ) )
    367388                form.addClass('root');
    368389
    369390            form.slideDown( 200 );
    370             jq.scrollTo( form, 500, { offset:-100, easing:'easeOutQuad' } );
     391            jq.scrollTo( form, 500, {
     392                offset:-100,
     393                easing:'easeOutQuad'
     394            } );
    371395            jq('#ac-form-' + ids[2] + ' textarea').focus();
    372396
     
    407431
    408432            jq.post( ajaxurl, ajaxdata,
    409             function(response)
    410             {
    411                 target.removeClass('loading');
    412 
    413                 /* Check for errors and append if found. */
    414                 if ( response[0] + response[1] == '-1' ) {
    415                     form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    416                 } else {
    417                     form.fadeOut( 200,
    418                         function() {
    419                             if ( 0 == form.parent().children('ul').length ) {
    420                                 if ( form.parent().hasClass('activity-comments') )
    421                                     form.parent().prepend('<ul></ul>');
    422                                 else
    423                                     form.parent().append('<ul></ul>');
     433                function(response)
     434                {
     435                    target.removeClass('loading');
     436
     437                    /* Check for errors and append if found. */
     438                    if ( response[0] + response[1] == '-1' ) {
     439                        form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
     440                    } else {
     441                        form.fadeOut( 200,
     442                            function() {
     443                                if ( 0 == form.parent().children('ul').length ) {
     444                                    if ( form.parent().hasClass('activity-comments') )
     445                                        form.parent().prepend('<ul></ul>');
     446                                    else
     447                                        form.parent().append('<ul></ul>');
     448                                }
     449
     450                                form.parent().children('ul').append(response).hide().fadeIn( 200 );
     451                                form.children('textarea').val('');
     452                                form.parent().parent().addClass('has-comments');
    424453                            }
    425 
    426                             form.parent().children('ul').append(response).hide().fadeIn( 200 );
    427                             form.children('textarea').val('');
    428                             form.parent().parent().addClass('has-comments');
    429                         }
    430                     );
    431                     jq( 'form#' + form + ' textarea').val('');
    432 
    433                     /* Increase the "Reply (X)" button count */
    434                     jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
    435                 }
    436 
    437                 jq(target).prop("disabled", false);
    438             });
     454                            );
     455                        jq( 'form#' + form + ' textarea').val('');
     456
     457                        /* Increase the "Reply (X)" button count */
     458                        jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
     459                    }
     460
     461                    jq(target).prop("disabled", false);
     462                });
    439463
    440464            return false;
     
    448472
    449473            var nonce = link_href.split('_wpnonce=');
    450                 nonce = nonce[1];
     474            nonce = nonce[1];
    451475
    452476            var comment_id = link_href.split('cid=');
    453                 comment_id = comment_id[1].split('&');
    454                 comment_id = comment_id[0];
     477            comment_id = comment_id[1].split('&');
     478            comment_id = comment_id[0];
    455479
    456480            target.addClass('loading');
    457481
    458482            /* Remove any error messages */
    459             jq('div.activity-comments ul div.error').remove();
     483            jq('.activity-comments ul .error').remove();
    460484
    461485            /* Reset the form position */
    462             comment_li.parents('div.activity-comments').append(form);
     486            comment_li.parents('.activity-comments').append(form);
    463487
    464488            jq.post( ajaxurl, {
     
    505529
    506530            // Remove any error messages
    507             jq( 'div.activity-comments ul div.error' ).remove();
     531            jq( '.activity-comments ul div.error' ).remove();
    508532
    509533            // Reset the form position
    510             comment_li.parents( 'div.activity-comments' ).append( comment_li.parents( 'div.activity-comments' ).children( 'form' ) );
     534            comment_li.parents( '.activity-comments' ).append( comment_li.parents( '.activity-comments' ).children( 'form' ) );
    511535
    512536            jq.post( ajaxurl, {
     
    582606
    583607    /* The search form on all directory pages */
    584     jq('div.dir-search').click( function(event) {
     608    jq('.dir-search').click( function(event) {
    585609        if ( jq(this).hasClass('no-ajax') )
    586610            return;
     
    589613
    590614        if ( target.attr('type') == 'submit' ) {
    591             var css_id = jq('div.item-list-tabs li.selected').attr('id').split( '-' );
     615            var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    592616            var object = css_id[0];
    593617
     
    626650    /* When the filter select box is changed re-query */
    627651    jq('li.filter select').change( function() {
    628         if ( jq('div.item-list-tabs li.selected').length )
    629             var el = jq('div.item-list-tabs li.selected');
     652        if ( jq('.item-list-tabs li.selected').length )
     653            var el = jq('.item-list-tabs li.selected');
    630654        else
    631655            var el = jq(this);
     
    637661        var search_terms = false;
    638662
    639         if ( jq('div.dir-search input').length )
    640             search_terms = jq('div.dir-search input').val();
     663        if ( jq('.dir-search input').length )
     664            search_terms = jq('.dir-search input').val();
    641665
    642666        if ( 'friends' == object )
     
    659683                return false;
    660684
    661             if ( jq('div.item-list-tabs li.selected').length )
    662                 var el = jq('div.item-list-tabs li.selected');
     685            if ( jq('.item-list-tabs li.selected').length )
     686                var el = jq('.item-list-tabs li.selected');
    663687            else
    664688                var el = jq('li.filter select');
     
    670694
    671695            if ( jq('div.dir-search input').length )
    672                 search_terms = jq('div.dir-search input').val();
     696                search_terms = jq('.dir-search input').val();
    673697
    674698            if ( jq(target).hasClass('next') )
    675                 var page_number = Number( jq('div.pagination span.current').html() ) + 1;
     699                var page_number = Number( jq('.pagination span.current').html() ) + 1;
    676700            else if ( jq(target).hasClass('prev') )
    677                 var page_number = Number( jq('div.pagination span.current').html() ) - 1;
     701                var page_number = Number( jq('.pagination span.current').html() ) - 1;
    678702            else
    679703                var page_number = Number( jq(target).html() );
     
    690714    /* Hit the "New Topic" button on the forums directory page */
    691715    jq('a.show-hide-new').click( function() {
    692         if ( !jq('div#new-topic-post').length )
    693             return false;
    694 
    695         if ( jq('div#new-topic-post').is(":visible") )
    696             jq('div#new-topic-post').slideUp(200);
     716        if ( !jq('#new-topic-post').length )
     717            return false;
     718
     719        if ( jq('#new-topic-post').is(":visible") )
     720            jq('#new-topic-post').slideUp(200);
    697721        else
    698             jq('div#new-topic-post').slideDown(200, function() { jq('#topic_title').focus(); } );
     722            jq('#new-topic-post').slideDown(200, function() {
     723                jq('#topic_title').focus();
     724            } );
    699725
    700726        return false;
     
    703729    /* Cancel the posting of a new forum topic */
    704730    jq('input#submit_topic_cancel').click( function() {
    705         if ( !jq('div#new-topic-post').length )
    706             return false;
    707 
    708         jq('div#new-topic-post').slideUp(200);
     731        if ( !jq('#new-topic-post').length )
     732            return false;
     733
     734        jq('#new-topic-post').slideUp(200);
    709735        return false;
    710736    });
    711737
    712738    /* Clicking a forum tag */
    713     jq('div#forum-directory-tags a').click( function() {
     739    jq('#forum-directory-tags a').click( function() {
    714740        bp_filter_request( 'forums', 'tags', jq.cookie('bp-forums-scope'), 'div.forums', jq(this).html().replace( /&nbsp;/g, '-' ), 1, jq.cookie('bp-forums-extras') );
    715741        return false;
     
    729755            var friend_action = 'uninvite';
    730756
    731         jq('div.item-list-tabs li.selected').addClass('loading');
     757        jq('.item-list-tabs li.selected').addClass('loading');
    732758
    733759        jq.post( ajaxurl, {
     
    752778            }
    753779
    754             jq('div.item-list-tabs li.selected').removeClass('loading');
     780            jq('.item-list-tabs li.selected').removeClass('loading');
    755781        });
    756782    });
     
    794820
    795821        var nonce = link_href.split('_wpnonce=');
    796             nonce = nonce[1];
     822        nonce = nonce[1];
    797823
    798824        if ( jq(this).hasClass('accepted') || jq(this).hasClass('rejected') )
     
    840866
    841867    /* Add / Remove friendship buttons */
    842     jq("div.friendship-button a").live('click', function() {
     868    jq(".friendship-button a").live('click', function() {
    843869        jq(this).parent().addClass('loading');
    844870        var fid = jq(this).attr('id');
     
    872898                        parentdiv.fadeIn(200).html(response);
    873899                    }
    874                 );
     900                    );
    875901
    876902            } else if ( action == 'remove' ) {
     
    882908                        parentdiv.fadeIn(200).html(response);
    883909                    }
    884                 );
     910                    );
    885911            }
    886912        });
     
    890916    /** Group Join / Leave Buttons **************************************/
    891917
    892     jq("div.group-button a").live('click', function() {
     918    jq(".group-button a").live('click', function() {
    893919        var gid = jq(this).parent().attr('id');
    894920        gid = gid.split('-');
     
    919945                        parentdiv.fadeIn(200).html(response);
    920946                    }
    921                 );
     947                    );
    922948            }
    923949        });
     
    927953    /** Button disabling ************************************************/
    928954
    929     jq('div.pending').click(function() {
     955    jq('.pending').click(function() {
    930956        return false;
    931957    });
     
    937963        function() {
    938964            var order = jq('#messages_order').val() || 'ASC',
    939                 offset = jq('#message-recipients').offset();
     965            offset = jq('#message-recipients').offset();
    940966
    941967            var button = jq("input#send_reply_button");
     
    967993                    }
    968994
    969                     jq("div.new-message").hide().slideDown( 200, function() {
    970                         jq('div.new-message').removeClass('new-message');
     995                    jq(".new-message").hide().slideDown( 200, function() {
     996                        jq('.new-message').removeClass('new-message');
    971997                    });
    972998                }
     
    10391065                case 'unread':
    10401066                    var checkboxes = jq("tr.unread td input[type='checkbox']");
    1041                 break;
     1067                    break;
    10421068                case 'read':
    10431069                    var checkboxes = jq("tr.read td input[type='checkbox']");
    1044                 break;
     1070                    break;
    10451071            }
    10461072            if ( selection != '' ) {
     
    11281154    /* Clear BP cookies on logout */
    11291155    jq('a.logout').click( function() {
    1130         jq.cookie('bp-activity-scope', null, {path: '/'});
    1131         jq.cookie('bp-activity-filter', null, {path: '/'});
    1132         jq.cookie('bp-activity-oldestpage', null, {path: '/'});
     1156        jq.cookie('bp-activity-scope', null, {
     1157            path: '/'
     1158        });
     1159        jq.cookie('bp-activity-filter', null, {
     1160            path: '/'
     1161        });
     1162        jq.cookie('bp-activity-oldestpage', null, {
     1163            path: '/'
     1164        });
    11331165
    11341166        var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    11351167        jq(objects).each( function(i) {
    1136             jq.cookie('bp-' + objects[i] + '-scope', null, {path: '/'} );
    1137             jq.cookie('bp-' + objects[i] + '-filter', null, {path: '/'} );
    1138             jq.cookie('bp-' + objects[i] + '-extras', null, {path: '/'} );
     1168            jq.cookie('bp-' + objects[i] + '-scope', null, {
     1169                path: '/'
     1170            } );
     1171            jq.cookie('bp-' + objects[i] + '-filter', null, {
     1172                path: '/'
     1173            } );
     1174            jq.cookie('bp-' + objects[i] + '-extras', null, {
     1175                path: '/'
     1176            } );
    11391177        });
    11401178    });
     
    11441182function bp_init_activity() {
    11451183    /* Reset the page */
    1146     jq.cookie( 'bp-activity-oldestpage', 1, {path: '/'} );
     1184    jq.cookie( 'bp-activity-oldestpage', 1, {
     1185        path: '/'
     1186    } );
    11471187
    11481188    if ( null != jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length )
     
    11501190
    11511191    /* Activity Tab Set */
    1152     if ( null != jq.cookie('bp-activity-scope') && jq('div.activity-type-tabs').length ) {
    1153         jq('div.activity-type-tabs li').each( function() {
     1192    if ( null != jq.cookie('bp-activity-scope') && jq('.activity-type-tabs').length ) {
     1193        jq('.activity-type-tabs li').each( function() {
    11541194            jq(this).removeClass('selected');
    11551195        });
    1156         jq('li#activity-' + jq.cookie('bp-activity-scope') + ', div.item-list-tabs li.current').addClass('selected');
     1196        jq('li#activity-' + jq.cookie('bp-activity-scope') + ', .item-list-tabs li.current').addClass('selected');
    11571197    }
    11581198}
     
    11651205
    11661206        if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
    1167             jq('div.item-list-tabs li').each( function() {
     1207            jq('.item-list-tabs li').each( function() {
    11681208                jq(this).removeClass('selected');
    11691209            });
    1170             jq('div.item-list-tabs li#' + objects[i] + '-' + jq.cookie('bp-' + objects[i] + '-scope') + ', div.item-list-tabs#object-nav li.current').addClass('selected');
     1210            jq('.item-list-tabs li#' + objects[i] + '-' + jq.cookie('bp-' + objects[i] + '-scope') + ', div.item-list-tabs#object-nav li.current').addClass('selected');
    11711211        }
    11721212    });
     
    11851225
    11861226    /* Save the settings we want to remain persistent to a cookie */
    1187     jq.cookie( 'bp-' + object + '-scope', scope, {path: '/'} );
    1188     jq.cookie( 'bp-' + object + '-filter', filter, {path: '/'} );
    1189     jq.cookie( 'bp-' + object + '-extras', extras, {path: '/'} );
     1227    jq.cookie( 'bp-' + object + '-scope', scope, {
     1228        path: '/'
     1229    } );
     1230    jq.cookie( 'bp-' + object + '-filter', filter, {
     1231        path: '/'
     1232    } );
     1233    jq.cookie( 'bp-' + object + '-extras', extras, {
     1234        path: '/'
     1235    } );
    11901236
    11911237    /* Set the correct selected nav and filter */
    1192     jq('div.item-list-tabs li').each( function() {
     1238    jq('.item-list-tabs li').each( function() {
    11931239        jq(this).removeClass('selected');
    11941240    });
    1195     jq('div.item-list-tabs li#' + object + '-' + scope + ', div.item-list-tabs#object-nav li.current').addClass('selected');
    1196     jq('div.item-list-tabs li.selected').addClass('loading');
    1197     jq('div.item-list-tabs select option[value="' + filter + '"]').prop( 'selected', true );
     1241    jq('.item-list-tabs li#' + object + '-' + scope + ', .item-list-tabs#object-nav li.current').addClass('selected');
     1242    jq('.item-list-tabs li.selected').addClass('loading');
     1243    jq('.item-list-tabs select option[value="' + filter + '"]').prop( 'selected', true );
    11981244
    11991245    if ( 'friends' == object )
     
    12181264            jq(this).html(response);
    12191265            jq(this).fadeIn(100);
    1220         });
    1221         jq('div.item-list-tabs li.selected').removeClass('loading');
     1266        });
     1267        jq('.item-list-tabs li.selected').removeClass('loading');
    12221268    });
    12231269}
     
    12261272function bp_activity_request(scope, filter) {
    12271273    /* Save the type and filter to a session cookie */
    1228     jq.cookie( 'bp-activity-scope', scope, {path: '/'} );
    1229     jq.cookie( 'bp-activity-filter', filter, {path: '/'} );
    1230     jq.cookie( 'bp-activity-oldestpage', 1, {path: '/'} );
     1274    jq.cookie( 'bp-activity-scope', scope, {
     1275        path: '/'
     1276    } );
     1277    jq.cookie( 'bp-activity-filter', filter, {
     1278        path: '/'
     1279    } );
     1280    jq.cookie( 'bp-activity-oldestpage', 1, {
     1281        path: '/'
     1282    } );
    12311283
    12321284    /* Remove selected and loading classes from tabs */
    1233     jq('div.item-list-tabs li').each( function() {
     1285    jq('.item-list-tabs li').each( function() {
    12341286        jq(this).removeClass('selected loading');
    12351287    });
    12361288    /* Set the correct selected nav and filter */
    1237     jq('li#activity-' + scope + ', div.item-list-tabs li.current').addClass('selected');
    1238     jq('div#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
     1289    jq('li#activity-' + scope + ', .item-list-tabs li.current').addClass('selected');
     1290    jq('#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
    12391291    jq('#activity-filter-select select option[value="' + filter + '"]').prop( 'selected', true );
    12401292
     
    12661318        /* Update the feed link */
    12671319        if ( null != response.feed_url )
    1268             jq('.directory div#subnav li.feed a, .home-page div#subnav li.feed a').attr('href', response.feed_url);
    1269 
    1270         jq('div.item-list-tabs li.selected').removeClass('loading');
     1320            jq('.directory #subnav li.feed a, .home-page #subnav li.feed a').attr('href', response.feed_url);
     1321
     1322        jq('.item-list-tabs li.selected').removeClass('loading');
    12711323
    12721324    }, 'json' );
Note: See TracChangeset for help on using the changeset viewer.