Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROD-8480] [PROD-8486] Update Select2 library #4601

Open
wants to merge 3 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions src/bp-core/bp-core-cssjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ function bp_core_register_common_scripts() {
'footer' => true,
),

// Version 3.1.1
'bp-jquery-validate' => array(
'file' => "{$url}vendor/jquery.validate{$min}.js",
'dependencies' => array( 'jquery' ),
'footer' => true,
),
'jquery-mask' => array(
'file' => "{$url}vendor/jquery.mask{$min}.js",
'dependencies' => array( 'jquery' ),
Expand Down Expand Up @@ -826,40 +820,6 @@ function bp_core_enqueue_livestamp() {
wp_enqueue_script( 'bp-livestamp' );
}

/**
* Enqueues the jQuery validate js.
*
* @since BuddyPress 3.1.1
*/
function bp_core_jquery_validate_scripts() {

// wp_enqueue_script( 'bp-jquery-validate' );
// add_action( 'wp_head', 'bp_core_add_jquery_validate_inline_js' );
}
add_action( 'bp_enqueue_scripts', 'bp_core_jquery_validate_scripts' );


/**
* Output the inline JS needed for the jQuery validate
*
* @since BuddyPress 3.1.1
*/
function bp_core_add_jquery_validate_inline_js() {
?>

<script>
jQuery(document).ready(function(){
jQuery('#buddypress #signup-form').validate({
submitHandler: function(form) {
jQuery(form).submit();
}
});
});
</script>

<?php
}

/**
* Enqueues jquery.mask.js on BuddyPress pages.
*
Expand Down
Loading
Loading