See ChangeLog.

Monotone-Parent: a7e3713b79d3ec5043152d79550eec23b2ff854f
Monotone-Revision: 0bc4e04aaead15b626a732a223ebf47ee22e73f0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-05-28T20:30:35
This commit is contained in:
Francis Lachapelle
2012-05-28 20:30:35 +00:00
parent 6aed6c5ed0
commit 439248ee89
5 changed files with 31 additions and 6 deletions

View File

@@ -799,13 +799,21 @@ function hideImportResults () {
}
function validateUploadForm () {
rc = false;
if ($("contactsFile").value.length)
if ($("contactsFile").value.length) {
var btn = jQuery('#uploadSubmit');
jQuery('#uploadCancel').fadeOut('fast');
btn.addClass("disabled");
btn.children('span').text(_('Uploading'));
rc = true;
}
return rc;
}
function uploadCompleted(response) {
data = response.evalJSON(true);
jQuery('#uploadCancel').show();
var btn = jQuery('#uploadSubmit');
btn.removeClass("disabled");
btn.children('span').text(_('Upload'));
var div = $("uploadResults");
if (data.imported <= 0)
$("uploadResultsContent").update(_("An error occured while importing contacts."));