Skip to content

Commit

Permalink
- Show a progress indicator on link_to_pdf tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyrumple committed May 2, 2021
1 parent f86a29b commit ed1c10c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web2py/applications/smc/controllers/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,8 +2134,13 @@ def find_replace_link_to_pdf():
redirect(URL("find_replace.html"))

form1 = FORM(TABLE(TR("Ready to run click GO: "),
TR("", INPUT(_type="submit", _value="GO"))),
_action=URL('media', 'find_replace_link_to_pdf.load', user_signature=True)).process(keepvalues=True)
TR(INPUT(_type="submit", _value="GO",
_onclick="$('#link_to_pdf_progress').attr('src', '" + URL('static', 'images/progress.gif') + "' );"),
IMG(_id='link_to_pdf_progress', _width=64, _height=64, _src=URL('static', 'images/empty.png'))
),
),
_action=URL('media', 'find_replace_link_to_pdf.load', user_signature=True),
_id='link_to_pdf_form').process(keepvalues=True)

find_replace_results = ""

Expand Down
Binary file added web2py/applications/smc/static/images/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ed1c10c

Please sign in to comment.