Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Bump to version 1.0.13
Browse files Browse the repository at this point in the history
1. Replace Mailgun email validator with in-house Platform email validator.
  • Loading branch information
Aaron Huisinga committed Jul 9, 2017
1 parent 1edcea5 commit 7e9160d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion assets/js/mailgun-validator.js

This file was deleted.

1 change: 1 addition & 0 deletions assets/js/platform-email-validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jQuery(function ($) {
});

// Email Validation
if (ChiroQuiz.mailgun !== undefined && ChiroQuiz.mailgun !== null) {
$('#email').mailgun_validator({
api_key: ChiroQuiz.mailgun,
if (ChiroQuiz.platformvalidator !== undefined && ChiroQuiz.platformvalidator !== null) {
$('#email').platform_email_validator({
api_key: ChiroQuiz.platformvalidator,
in_progress: function () {
$('#email').parent().removeClass('has-warning has-error');
$(".mailcheck-suggestion").remove();
Expand Down Expand Up @@ -69,7 +69,7 @@ jQuery(function ($) {

$(".form-group").on("click", ".mailcheck-suggestion a", function (e) {
e.preventDefault();
$("#email").val($(this).text());
$("#email").val($(this).text()).parent().removeClass('has-warning has-error');
$("[type=submit]").removeClass("disabled").removeAttr("disabled");
$(".mailcheck-suggestion").remove();
});
Expand Down
4 changes: 2 additions & 2 deletions chiro-quiz.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* Plugin Name: Chiropractic Quiz
* Version: 1.0.12
* Version: 1.0.13
* Plugin URI: https://platform.marketing/
* Description: Simple chiropractic lead generation through a quiz that helps qualify prospective patients.
* Author: Platform Marketing
Expand All @@ -20,7 +20,7 @@
define( 'CHIRO_QUIZ_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );

if ( ! defined( 'CHIRO_QUIZ_PLUGIN_VERSION' ) )
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.12' );
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.13' );

require_once( 'classes/class-chiro-quiz.php' );

Expand Down
8 changes: 4 additions & 4 deletions classes/class-chiro-quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ public function enqueue_scripts()
]);
wp_enqueue_script('icheck');
wp_enqueue_script($this->token . '-js');
wp_register_script('mailgun-validator', esc_url($this->assets_url . 'js/mailgun-validator.js'), [
wp_register_script('platform-email-validator', esc_url($this->assets_url . 'js/platform-email-validator.js'), [
'jquery'
], CHIRO_QUIZ_PLUGIN_VERSION);
wp_enqueue_script('mailgun-validator');
wp_enqueue_script('platform-email-validator');

$localize = [
'ajaxurl' => admin_url('admin-ajax.php'),
'mailgun' => defined('MAILGUN_PUBLIC') ? MAILGUN_PUBLIC : ''
'ajaxurl' => admin_url('admin-ajax.php'),
'platformvalidator' => defined('MAILGUN_PUBLIC') ? MAILGUN_PUBLIC : ''
];
wp_localize_script($this->token . '-js', 'ChiroQuiz', $localize);
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Aaron Huisinga
Tags: chiropractic, platform, chiro quiz
Requires at least: 4.0
Tested up to: 4.7.4
Stable tag: 1.0.12
Stable tag: 1.0.13

Simple chiropractic lead generation through a quiz that helps qualify prospective patients.

Expand Down

0 comments on commit 7e9160d

Please sign in to comment.