mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
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:
@@ -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."));
|
||||
|
||||
Reference in New Issue
Block a user