Verified Commit a1d0ef76 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix Disabled cancel button during import

parent 65b47deb
......@@ -212,6 +212,7 @@ var zipContent = "";
}
$(this).attr('disabled',true);
$('#messageImport_cancel').attr('disabled', true);
ajax($('#messageImport_submit'), {
type : 'POST',
......@@ -238,6 +239,7 @@ var zipContent = "";
$('#messageImport_errorDetail').html(arg);
$('#messageImport_erreur').removeClass('hide');
$('#messageImport_submit').attr('disabled',false);
$('#messageImport_cancel').attr('disabled',false);
}
......@@ -258,6 +260,7 @@ var zipContent = "";
$('#messageImport_erreur').removeClass('hide');
$('#messageImport_cancel').click();
$('#messageImport_submit').attr('disabled',false);
$('#messageImport_cancel').attr('disabled',false);
}
......@@ -384,6 +387,7 @@ var zipContent = "";
}
$('#messageImport_submit').attr('disabled',false);
$('#messageImport_cancel').attr('disabled',false);
},
error : function (response) {
gritter.show(response.responseJSON.message, response.responseJSON.status);
......@@ -401,6 +405,7 @@ var zipContent = "";
$('#messageImport_erreur').removeClass('hide');
$('#messageImport_cancel').click();
$('#messageImport_submit').attr('disabled',false);
$('#messageImport_cancel').attr('disabled',false);
}
});
}
......@@ -410,7 +415,7 @@ var zipContent = "";
messageFile : $('#messageImport_filesBrowser').data('base64'),
attachments : [],
schema : $('#messageImport_schema option:selected').val(),
filename : $('#messageImport_filesBrowser').data('filename'),
filename : $('#messageImport_filesBrowser').data('filename')
};
var attachments = $('#messageImport_attachments').find('input');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment