BUGFIX Fixed history.pushState() ajax load duplication in CMSPageHistoryController.js

This commit is contained in:
Ingo Schommer 2011-09-19 21:00:17 +02:00
parent ecae94e8c2
commit 872239830c
1 changed files with 1 additions and 10 deletions

View File

@ -73,16 +73,7 @@
url = 'admin/page/history/show/'+ [id,to].join('/') + "/";
}
window.History.pushState({selector: '.cms-content-fields form:first'}, '', 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')
});
window.History.pushState({selector: '.cms-edit-form'}, '', url);
return false;
}