BUGFIX Fixing incorrect arguments to submitForm() in

LeftAndMain.AddForm.js
This commit is contained in:
Sean Harvey 2012-05-22 15:37:31 +12:00
parent ce7a96b116
commit 0d4f7a04dc

View File

@ -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'}
}