Permalink
Browse files

MINOR Retaining correct PJAX selector on (fake) redirects after form …

…submissions
  • Loading branch information...
1 parent 1742b4b commit 15e16f13e176cf15d91cf084720a4bc33cf926d6 @chillu chillu committed Apr 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 admin/javascript/LeftAndMain.Content.js
@@ -150,7 +150,10 @@
formData.push({name: 'BackURL', value:History.getPageUrl()});
jQuery.ajax(jQuery.extend({
- headers: {"X-Pjax" : "CurrentForm"},
+ headers: {
+ "X-Pjax" : "CurrentForm",
+ 'X-Pjax-Selector': '.cms-edit-form'
+ },
url: form.attr('action'),
data: formData,
type: 'POST',

0 comments on commit 15e16f1

Please sign in to comment.