Changeset 1320072
- Timestamp:
- 01/02/2016 10:41:47 PM (10 years ago)
- Location:
- cf7-notie/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
cf7_notie.php (modified) (2 diffs)
-
public/class-cf7_notie-public.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cf7-notie/trunk/README.txt
r1294188 r1320072 4 4 Tags: contact form 7, wpcf7,contact form 7 addon, contact form, notie 5 5 Requires at least: 3.1.0 6 Tested up to: 4. 37 Stable tag: 1. 06 Tested up to: 4.4 7 Stable tag: 1.1 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 * 1.0 39 39 First release. 40 41 * 1.1 42 Fixed bug with multiple forms on same page. -
cf7-notie/trunk/cf7_notie.php
r1294178 r1320072 4 4 * 5 5 * @link http://www.fabbricaweb.com.br 6 * @since 1. 06 * @since 1.1 7 7 * @package Cf7_notie 8 8 * … … 10 10 * Plugin Name: CF7 Notie 11 11 * Description: Display Contact Form 7 response messages as an alternative the standard alert dialog. 12 * Version: 1. 012 * Version: 1.1 13 13 * Author: FabbricaWeb 14 14 * Author URI: http://www.fabbricaweb.com.br -
cf7-notie/trunk/public/class-cf7_notie-public.php
r1294178 r1320072 5 5 * 6 6 * @link http://www.fabbricaweb.com.br 7 * @since 1.0 7 * @since 1.0.0 8 8 * 9 9 * @package Cf7_notie … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.0 28 * @since 1.0.0 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.0 37 * @since 1.0.0 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.0 46 * @since 1.0.0 47 47 * @param string $plugin_name The name of the plugin. 48 48 * @param string $version The version of this plugin. … … 58 58 * Register the stylesheets for the public-facing side of the site. 59 59 * 60 * @since 1.0 60 * @since 1.0.0 61 61 */ 62 62 public function enqueue_styles() { … … 81 81 * Register the JavaScript for the public-facing side of the site. 82 82 * 83 * @since 1.0 83 * @since 1.0.0 84 84 */ 85 85 public function enqueue_scripts() { … … 112 112 $return = '<script type="text/javascript"> 113 113 jQuery(".wpcf7-submit").click(function() { 114 var button = jQuery(this); 114 115 jQuery( document ).ajaxComplete(function() { 115 116 var notie_style = ""; 116 if ( jQuery(".wpcf7-response-output").hasClass("wpcf7-validation-errors") ) {117 if ( button.parents(".wpcf7").find(".wpcf7-response-output").hasClass("wpcf7-validation-errors") ) { 117 118 notie_style = 2; 118 } else if ( jQuery(".wpcf7-response-output").hasClass("wpcf7-mail-sent-ng") ) {119 } else if ( button.parents(".wpcf7").find(".wpcf7-response-output").hasClass("wpcf7-mail-sent-ng") ) { 119 120 notie_style = 3; 120 121 } else { 121 122 notie_style = 1; 122 123 } 123 notie.alert(notie_style, jQuery(".wpcf7-response-output").html(), 3);124 notie.alert(notie_style, button.parents(".wpcf7").find(".wpcf7-response-output").html(), 3); 124 125 jQuery(".wpcf7-response-output").css( "display", "none" ); 125 126 });
Note: See TracChangeset
for help on using the changeset viewer.