Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php ob_start(); ?>
- <script type="text/javascript">
- (function ($) {
- $(document).on('click', '#submit-paid', function (e) {
- e.preventDefault();
- var $this = $(this);
- var $form = $('#pay-form');
- location.href = $this.attr('href') + '?' + $form.serialize();
- });
- })(jQuery);
- </script>
- <?php $script = ob_get_clean(); ?>
- <?php $this->registerJS(preg_replace(['/^\<script.+?\>/', '/\<\/script\>$/'], '', $script), View::POS_END); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement