From 0d4f7a04dc2c74ab4d3d7d703c7f9e75ba211dae Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 22 May 2012 15:37:31 +1200 Subject: [PATCH] BUGFIX Fixing incorrect arguments to submitForm() in LeftAndMain.AddForm.js --- admin/javascript/LeftAndMain.AddForm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/javascript/LeftAndMain.AddForm.js b/admin/javascript/LeftAndMain.AddForm.js index 242bd7a0e..f55332746 100644 --- a/admin/javascript/LeftAndMain.AddForm.js +++ b/admin/javascript/LeftAndMain.AddForm.js @@ -92,16 +92,16 @@ data.push({name:button.attr('name'),value:button.val()}); // TODO Should be set by hiddenfield already - jQuery('.cms-content').submitForm( - this.attr('action'), - null, + $('.cms-content').submitForm( + this, + button, function() { // Tree updates are triggered by Form_EditForm load events button.removeClass('loading'); }, { - type: 'POST', - data: data, + type: 'POST', + data: data, // Refresh the whole area to avoid reloading just the form, without the tree around it headers: {'X-Pjax': 'Content'} }