From 99fb466a6cbf3e12c2fd29bd4f95e87ceaacc5cf Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 4 May 2018 00:02:52 +1000 Subject: [PATCH] Placeholder for ajax form 'complete' callback --- InvenTree/static/script/modal_form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/static/script/modal_form.js b/InvenTree/static/script/modal_form.js index bc996fd607..2b61bc757f 100644 --- a/InvenTree/static/script/modal_form.js +++ b/InvenTree/static/script/modal_form.js @@ -155,6 +155,9 @@ function handleModalForm(modal, url, options) { error: function(xhr, ajaxOptions, thrownError) { alert('Error posting form data:\n' + thrownError); $(modal).modal('hide'); + }, + complete: function(xhr) { + //TODO } }); });