Skip to:
Content

BuddyPress.org

Changeset 7152


Ignore:
Timestamp:
06/04/2013 01:45:31 PM (11 years ago)
Author:
boonebgorges
Message:

Change field visibility gloss when setting has been changed in profile edit mode

This is a less confusing UX for users who are changing the visibility levels
of their profile fields.

Fixes #4958

Props dcavins

File:
1 edited

Legend:

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

    r7151 r7152  
    872872    jq('.field-visibility-settings-close').on( 'click', function() {
    873873        var settings_div = jq(this).parent();
    874 
    875         jq(settings_div).slideUp( 400, function(){
    876             jq(settings_div).siblings('.field-visibility-settings-toggle').fadeIn(800);
    877         });
     874        var vis_setting_text = settings_div.find('input:checked').parent().text();
     875
     876        settings_div.slideUp( 400, function() {
     877            settings_div.siblings('.field-visibility-settings-toggle').fadeIn(800);
     878            settings_div.siblings('.field-visibility-settings-toggle').children('.current-visibility-level').html(vis_setting_text);
     879        } );
    878880
    879881        return false;
Note: See TracChangeset for help on using the changeset viewer.