Changeset c081c35 in OpenWorkouts-current for ow/templates/update_workout_from_file.pt
- Timestamp:
- Sep 27, 2019, 1:10:51 PM (5 years ago)
- Branches:
- current
- Children:
- dba0ae9
- Parents:
- c82fe79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/templates/update_workout_from_file.pt
rc82fe79 rc081c35 19 19 20 20 <metal:content metal:fill-slot="content"> 21 22 <div class="uploading-workout hidden"> 23 <h2 i18n:translate="">Uploading workout, please wait...</h2> 24 <p i18n:translate=""> 25 This can take a moment, depending on the size of your tracking file and your connection speed. Be patient and please don't hit the stop or go back buttons on your browser. 26 </p> 27 <img src="" alt="Loading workout" i18n:attributes="alt" 28 tal:attributes="src request.static_url('ow:static/media/img/loading.gif')"> 29 </div> 30 21 31 <div id="update_workout_file" class="ow-forms"> 22 32 … … 76 86 </metal:content> 77 87 88 <metal:body-js metal:fill-slot="body-js"> 89 <script> 90 $(document).ready(function(){ 91 $("#update_workout_file form").on("submit", function(){ 92 console.log('Showing spinner'); 93 $("#update_workout_file").fadeOut(); 94 $("div.uploading-workout").fadeIn(); 95 }); 96 }); 97 </script> 98 </metal:body-js> 99 100 78 101 </html>
Note: See TracChangeset
for help on using the changeset viewer.