Permalink
Browse files

BUGFIX Fixed history.pushState() ajax load duplication in CMSPageHist…

…oryController.js
  • Loading branch information...
1 parent ecae94e commit 872239830cd32f5ca5bb768aa1bf963b602adb55 @chillu chillu committed Sep 19, 2011
Showing with 1 addition and 10 deletions.
  1. +1 −10 javascript/CMSPageHistoryController.js
@@ -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;
}

0 comments on commit 8722398

Please sign in to comment.