Enable searching for countries in dropdown

This commit is contained in:
Brian Miyaji
2014-02-16 22:48:45 +11:00
parent 7a769667e3
commit 630c23db52
7 changed files with 446 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
jQuery(document).ready(function($){
// Display custom sport name field as needed
$("body.settings_page_sportspress #sportspress_sport").change(function() {
$target = $("#sportspress_custom_sport_name");
if ( $(this).val() == "custom" )
@@ -8,6 +9,9 @@ jQuery(document).ready(function($){
$target.hide();
});
// Chosen select
$(".chosen-select").chosen();
// Auto key placeholder
$("#poststuff #title").on("keyup", function() {
$("#sp_key").attr("placeholder", $(this).val().replace(/[^a-z]/gi,"").toLowerCase());