Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Commit

Permalink
reset upload status on commencing upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobson committed Jul 2, 2012
1 parent 5cbda55 commit 46041b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/www/js/app.js
Expand Up @@ -153,6 +153,8 @@ require( [ 'jquery', 'l10n', 'geo', 'api', 'templates', 'monuments', 'preference
$("#upload-confirm").html(uploadConfirmTemplate({monument: curMonument, fileUrl: fileUrl})).localize();
$("#confirm-license-text").html(mw.msg('confirm-license-text', api.userName));
$("#continue-upload").click(function() {
// reset status message for any previous uploads
$( '#upload-progress-state' ).html(mw.msg( 'upload-progress-starting' ));
showPage("upload-progress-page");
api.startUpload(fileUrl, fileName, 'Uploaded via WLM Mobile App', 'Testing WLM').done(function(fileKey) {
$("#upload-progress-state").html(mw.msg("upload-progress-in-progress"));
Expand Down

0 comments on commit 46041b8

Please sign in to comment.