Remove remotipart (not working with ie9) the upload is working except that the pop-up does not disappear in ie

This commit is contained in:
Christophe Vilayphiou committed 2012-08-06 17:34:00 +08:00
1 parent 80887ace3c
commit 3f543193f0
4 files changed
+10 -4

No files matched your search

+6
View File
@@ -2,6 +2,12 @@ $(document).on('click', '#ajax_form_submit', function(){
$('#ajaxForm').ajaxSubmit({
beforeSubmit: function(a,f,o) {
o.dataType = 'script';
if (o.dataType == 'script') {
o.url = o.url.split('?'); // split on GET params
if (o.url[0].substr(-3) != '.js') o.url[0] += '.js'; // force rails to respond to respond to the request with :format = js
o.url = o.url.join('?'); // join on GET params
alert(o.url)
}
}
});
});
+1 -1
View File
@@ -17,4 +17,4 @@
//= require side_bar_history
//= require rss
//= require ajax_form
//= require jquery.remotipart
//= require inc/ajax_setting