fix preview for IE

This commit is contained in:
manson 2014-08-19 18:00:12 +08:00
parent 13f63d4c2a
commit 93337c1019
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@ $(function() {
for ( instance in CKEDITOR.instances )
CKEDITOR.instances[instance].updateElement();
var formData = new FormData( $('form.previewable')[0] );
var formData;
if(typeof(FormData) == "function"){
formData = new FormData( $('form.previewable')[0] );
}else{
formData = $('form.previewable').serialize()
}
$.ajax({
type: "post",