From daedc38f8e23eb2410ab8191a4cd8e5cb66e3420 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 19 Feb 2014 13:56:38 +1100 Subject: [PATCH] Add team name editor action titles and click team name to activate editor --- assets/js/admin.js | 4 ++-- functions.php | 6 +++--- readme.txt | 2 +- sportspress.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/js/admin.js b/assets/js/admin.js index 9322d27a..7ab1094e 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -70,8 +70,8 @@ jQuery(document).ready(function($){ $(".sp-clone:last").find("select").change(); // Name editor - $(".sp-data-table .sp-edit-name").click(function() { - $(this).closest(".sp-default-name").hide().siblings(".sp-custom-name").show().find(".sp-custom-name-input").focus(); + $(".sp-data-table .sp-default-name").click(function() { + $(this).hide().siblings(".sp-custom-name").show().find(".sp-custom-name-input").focus(); }); // Name editor save diff --git a/functions.php b/functions.php index 111209be..04f09aaa 100644 --- a/functions.php +++ b/functions.php @@ -785,12 +785,12 @@ if ( !function_exists( 'sportspress_edit_league_table' ) ) { - + $label ): diff --git a/readme.txt b/readme.txt index 72a28c49..f5411567 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: sports, sports journalism, teams, team management, fixtures, results, stan Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress Requires at least: 3.8 Tested up to: 3.8.1 -Stable tag: 0.3.3 +Stable tag: 0.3.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html diff --git a/sportspress.php b/sportspress.php index faaaed50..cfa4e627 100644 --- a/sportspress.php +++ b/sportspress.php @@ -6,7 +6,7 @@ Plugin Name: SportsPress Plugin URI: http://themeboy.com/sportspress Description: Manage your club and its players, staff, events, league tables, and player lists. -Version: 0.3.3 +Version: 0.3.4 Author: ThemeBoy Author URI: http://themeboy.com/ License: GPLv3 @@ -18,7 +18,7 @@ if ( !function_exists( 'add_action' ) ): exit; endif; -define( 'SPORTSPRESS_VERSION', '0.3.3' ); +define( 'SPORTSPRESS_VERSION', '0.3.4' ); define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );