Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixing incorrect arguments to submitForm() in

LeftAndMain.AddForm.js
  • Loading branch information...
commit 0d4f7a04dc2c74ab4d3d7d703c7f9e75ba211dae 1 parent ce7a96b
@halkyon halkyon authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 admin/javascript/LeftAndMain.AddForm.js
View
10 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'}
}
Please sign in to comment.
Something went wrong with that request. Please try again.