Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2009 01:07:21 AM (16 years ago)
Author:
apeatling
Message:

Added profile field re-ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-cssjs.php

    r1636 r1798  
    22
    33function xprofile_add_admin_css() {
     4    wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' );
     5}
     6add_action( 'admin_menu', 'xprofile_add_admin_css' );
     7
     8function xprofile_add_admin_js() {
    49    if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {
    5         echo '<link rel="stylesheet" href="' . BP_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />';
     10        wp_enqueue_script( array( "jquery-ui-sortable" ) );
     11        wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery' ) );
    612    }
    713}
    8 add_action( 'admin_head', 'xprofile_add_admin_css' );
    9 
    10 function xprofile_add_admin_js() {
    11     if ( strpos( $_GET['page'], 'xprofile' ) !== false )
    12         echo '<script type="text/javascript" src="' . BP_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>';
    13 }
    14 add_action( 'admin_head', 'xprofile_add_admin_js' );
     14add_action( 'admin_menu', 'xprofile_add_admin_js', 1 );
    1515
    1616?>
Note: See TracChangeset for help on using the changeset viewer.