Changeset c081c35 in OpenWorkouts-current


Ignore:
Timestamp:
Sep 27, 2019, 1:10:51 PM (3 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
dba0ae9
Parents:
c82fe79
Message:

(#84) Added the loading spinner to the "update workout from tracking file" page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/update_workout_from_file.pt

    rc82fe79 rc081c35  
    1919
    2020  <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
    2131    <div id="update_workout_file" class="ow-forms">
    2232
     
    7686  </metal:content>
    7787
     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
    78101</html>
Note: See TracChangeset for help on using the changeset viewer.