This commit is contained in:
Henrique Dias committed 2015-09-14 22:36:15 +01:00
1 parent 234e2a1ec4
commit e3ac3a6a4b
3 files changed
+47 -4

No files matched your search

+6
View File
@@ -3,10 +3,16 @@ $(document).ready(function() {
var data = JSON.stringify($(this).serializeField())
var url = $(this).attr('action')
console.log(data)
$.ajax({
type: 'POST',
url: url,
data: data,
beforeSend: function(xhr) {
// add publish and save
xhr.setRequestHeader('X-Save-Mode', 'publish');
}
dataType: 'json',
encode: true,
}).done(function(data) {