mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixing incorrect arguments to submitForm() in
LeftAndMain.AddForm.js
This commit is contained in:
parent
ce7a96b116
commit
0d4f7a04dc
@ -92,16 +92,16 @@
|
|||||||
data.push({name:button.attr('name'),value:button.val()});
|
data.push({name:button.attr('name'),value:button.val()});
|
||||||
|
|
||||||
// TODO Should be set by hiddenfield already
|
// TODO Should be set by hiddenfield already
|
||||||
jQuery('.cms-content').submitForm(
|
$('.cms-content').submitForm(
|
||||||
this.attr('action'),
|
this,
|
||||||
null,
|
button,
|
||||||
function() {
|
function() {
|
||||||
// Tree updates are triggered by Form_EditForm load events
|
// Tree updates are triggered by Form_EditForm load events
|
||||||
button.removeClass('loading');
|
button.removeClass('loading');
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: data,
|
data: data,
|
||||||
// Refresh the whole area to avoid reloading just the form, without the tree around it
|
// Refresh the whole area to avoid reloading just the form, without the tree around it
|
||||||
headers: {'X-Pjax': 'Content'}
|
headers: {'X-Pjax': 'Content'}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user