Changeset 662953
- Timestamp:
- 02/03/2013 10:49:31 PM (13 years ago)
- Location:
- contact-form-7-datepicker/trunk
- Files:
-
- 3 edited
-
contact-form-7-datepicker.php (modified) (1 diff)
-
datepicker.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-datepicker/trunk/contact-form-7-datepicker.php
r645880 r662953 5 5 Description: Easily add a date field using jQuery UI's datepicker to your CF7 forms. This plugin depends on Contact Form 7. 6 6 Author: Aurel Canciu 7 Version: 2.2 7 Version: 2.2.1 8 8 Author URI: https://github.com/relu/ 9 9 */ -
contact-form-7-datepicker/trunk/datepicker.php
r645880 r662953 90 90 91 91 $this->options['firstDay'] = get_option('start_of_week'); 92 92 93 $this->options = wp_parse_args((array)$options, $this->options); 93 94 $this->options = apply_filters('cf7_datepicker_options', $this->options); … … 111 112 $selector = ($inline) ? "$('$this->input_name')" : "$('input[name=\"{$this->input_name}\"]')"; 112 113 113 $out = self::_regionalize($selector); 114 $out .= "{$selector}.datepicker({$this->options_encode()});\n"; 114 $out = "{$selector}.datepicker({$this->options_encode()})"; 115 $out .= self::_regionalize(); 116 117 // Remove watermark class onSelect 118 $out .= ".datepicker('option', 'onSelect', function(){ $(this).removeClass('watermark'); });\n"; 115 119 116 120 $out = "jQuery(function($){ $out });"; … … 128 132 } 129 133 130 private static function _regionalize( $selector) {134 private static function _regionalize() { 131 135 $regional = self::get_regional_match(); 132 136 … … 134 138 135 139 if ($regional) 136 return " {$selector}.datepicker('option', $.datepicker.regional['{$regional}']);";140 return ".datepicker('option', $.datepicker.regional['{$regional}'])"; 137 141 138 142 return ''; -
contact-form-7-datepicker/trunk/readme.txt
r645880 r662953 4 4 Requires at least: 2.9 5 5 Tested up to: 3.5 6 Stable tag: 2.2 6 Stable tag: 2.2.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 35 35 == Changelog == 36 37 = 2.2.1 = 38 * Added fix for watermark on field update 36 39 37 40 = 2.2 =
Note: See TracChangeset
for help on using the changeset viewer.