Skip to:
Content

BuddyPress.org

Changeset 12829


Ignore:
Timestamp:
12/21/2020 12:33:12 PM (12 months ago)
Author:
slaffik
Message:

XProfile: make admin js text nodes translatable

Fix JS issues reported by the jshint, convert to camel case.

See #7076 (trunk).

Location:
trunk/src/bp-xprofile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/admin/js/admin.js

    r12828 r12829  
    1616        label        = document.createElement( 'label' ),
    1717        isDefault    = document.createElement( 'input' ),
    18         txt1         = document.createTextNode( XProfileAdmin.text.default_value ),
    19         toDeleteText = document.createTextNode( XProfileAdmin.text.delete ),
     18        txt1         = document.createTextNode( XProfileAdmin.text.defaultValue ),
     19        toDeleteText = document.createTextNode( XProfileAdmin.text.deleteLabel ),
    2020        toDeleteWrap = document.createElement( 'div' ),
    2121        toDelete     = document.createElement( 'a' );
  • trunk/src/bp-xprofile/bp-xprofile-cssjs.php

    r12828 r12829  
    5555            'do_autolink'                     => '',
    5656            'text'                            => array(
    57                 'default_value' => __( 'Default Value', 'buddypress' ),
    58                 'delete'        => __( 'Delete', 'buddypress' ),
     57                'defaultValue' => __( 'Default Value', 'buddypress' ),
     58                'deleteLabel'  => __( 'Delete', 'buddypress' ),
    5959            ),
    6060        );
Note: See TracChangeset for help on using the changeset viewer.