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

View File

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