From b9c4edeb483d7025d077177c55bbe4954f75e480 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Wed, 8 Dec 2021 13:20:40 +0000 Subject: [PATCH] update function call from attr to prop --- ref-test/admin/static/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/admin/static/js/script.js b/ref-test/admin/static/js/script.js index 1e3a3ce..a0aab2b 100644 --- a/ref-test/admin/static/js/script.js +++ b/ref-test/admin/static/js/script.js @@ -18,7 +18,7 @@ $('form.form-post').submit(function(event) { var $form = $(this); var data = $form.serialize(); - var url = $(this).attr('action'); + var url = $(this).prop('action'); var rel_success = $(this).data('rel-success'); $.ajax({