Send button changes while uploading

This commit is contained in:
Jerome Jutteau 2012-12-31 16:39:40 +01:00
parent ae198477d0
commit be0e8b0e4c
2 changed files with 8 additions and 3 deletions

View File

@ -141,9 +141,13 @@ if (!has_error () && $writable)
"config"><?php printf ('%s: %dMB', t('Maximum file size'),
jirafeau_get_max_upload_size () / (1024 *
1024));
?></p> <p><input type = "submit" value =
"<?php echo t('Send'); ?>" /></p>
<hr /><div id = "moreoptions"> <p><label><input type =
?></p><p>
<input type = "submit" id='send' value ="<?php echo t('Send'); ?>"
onclick="
document.getElementById('send').value='<?php echo t ('Uploading ...'); ?>';
document.getElementById('send').disabled='true';
"/>
</p><hr /><div id = "moreoptions"> <p><label><input type =
"checkbox" name =
"one_time_download" /><?php echo t('One time download');
?></label></p><br/><p><label for = "input_key"

View File

@ -22,6 +22,7 @@ $tr = array (
'Jirafeau, your web file repository' => 'Jirafeau, votre dépot de fichiers',
'Upload a file' => 'Envoyer un fichier',
'Send' => 'Envoyer',
'Uploading ...' => 'Envoie ...',
'One time download' => 'Téléchargement unique',
'Password' => 'Mot de passe',
'Time limit' => 'Limite de temps',