mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed history.pushState() ajax load duplication in CMSPageHistoryController.js
This commit is contained in:
parent
ecae94e8c2
commit
872239830c
@ -73,16 +73,7 @@
|
|||||||
url = 'admin/page/history/show/'+ [id,to].join('/') + "/";
|
url = 'admin/page/history/show/'+ [id,to].join('/') + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
window.History.pushState({selector: '.cms-content-fields form:first'}, '', url);
|
window.History.pushState({selector: '.cms-edit-form'}, '', url);
|
||||||
|
|
||||||
data = this.serializeArray();
|
|
||||||
data.push({
|
|
||||||
name: button.attr('name'), value: button.val()
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.cms-content').loadForm(this.attr('action'), null, function() {}, {
|
|
||||||
data: data, type: this.attr('method')
|
|
||||||
});
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user