Skip to:
Content

BuddyPress.org

Changeset 9250


Ignore:
Timestamp:
12/22/2014 03:37:00 AM (12 years ago)
Author:
r-a-y
Message:

bp-legacy: Add JS to toggle the "Blog Details" block on registration page.

When theme compatibility was introduced in BuddyPress 1.7, the javascript
to toggle the site registration form fields was not ported over from
bp-default. This commit brings back this functionality to bp-legacy.

Fixes #5846.

File:
1 edited

Legend:

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

    r9201 r9250  
    13361336                return false;
    13371337        });
     1338
     1339        /** Registration ***********************************************/
     1340
     1341        if ( jq('body').hasClass('register') ) {
     1342                var blog_checked = jq('#signup_with_blog');
     1343
     1344                // hide "Blog Details" block if not checked by default
     1345                if ( ! blog_checked.prop('checked') ) {
     1346                        jq('#blog-details').toggle();
     1347                }
     1348
     1349                // toggle "Blog Details" block whenever checkbox is checked
     1350                blog_checked.change(function() {
     1351                        jq('#blog-details').toggle();
     1352                });
     1353        }
    13381354
    13391355        /** Private Messaging ******************************************/
Note: See TracChangeset for help on using the changeset viewer.