Skip to content

Commit

Permalink
Fix form submit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendysond committed Sep 17, 2016
1 parent 82a1386 commit 99344e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 43 deletions.
2 changes: 2 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ You can also follow us on Twitter! **[@paystack](http://twitter.com/paystack)**


== Changelog ==
= 1.0.4 =
* Added Recurring Payments and new design.
= 1.0.3 =
* Invoice and Receipt Emails, with ability to disable them.
= 1.0.2 =
Expand Down
40 changes: 0 additions & 40 deletions includes/paystack-invoice.php
Original file line number Diff line number Diff line change
@@ -1,40 +0,0 @@

<title>Paystack Invoice</title>
<?php
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require(get_template_directory() . '/wp-blog-header.php' );
//call the wp head so you can get most of your wordpress
get_header();
?>

<?php
echo @$_GET['code'];

?>
<h1>Here's my plugin front-end page</h1>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<h2>You can put anything you want in this php file.</h2>
<?php
//call the wp foooter
get_footer();
?>
2 changes: 2 additions & 0 deletions public/class-paystack-forms-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,9 @@ function kkd_pff_paystack_form_shortcode($atts) {

// echo '</form>';
echo '<div class="span12 unit">
<small><span style="color: red;">*</span> are compulsory</small><br />
<img src="'. plugins_url( '../images/[email protected]' , __FILE__ ) .'" alt="cardlogos" class="paystack-cardlogos size-full wp-image-1096" />
<button type="reset" class="secondary-btn">Reset</button>
<button type="submit" class="primary-btn">'.$paybtn.'</button>
</div>';
Expand Down
5 changes: 2 additions & 3 deletions public/js/paystack-forms-public.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
$('.paystack-form').on('submit', function(e) {
var stop = false;
$(this).find("input, textarea").each(function() {
$(this).find("input,select, textarea").each(function() {
$(this).css({ "border-color":"#d1d1d1" });
});
var email = $(this).find("#pf-email").val();
Expand All @@ -42,9 +42,8 @@

});
if (stop) {
return false;
alert('sc');
$('html,body').animate({ scrollTop: $('.paystack-form').offset().top - 110 }, 500);
return false;

}

Expand Down

0 comments on commit 99344e3

Please sign in to comment.