Fix double submit issue

This commit is contained in:
jekkos
2018-06-18 19:06:55 +02:00
committed by jekkos
parent 683ef75162
commit 8f172e172b

View File

@@ -51,7 +51,9 @@
$('input[name="<?php echo $this->security->get_csrf_token_name(); ?>"]').val(csrf_token());
};
var submit = $.fn.submit;
setup_csrf_token();
var submit = $.fn.submit;
$.fn.submit = function() {
setup_csrf_token();