include the js form the internal dir and viewer now has tooltips on buttons, and all buttons work, call the right javascript, send jobs to the pa_job_manager, and make image go gray with throbber, and on job completion, hide throbber, redraw the image in color and with the newly transformed image

This commit is contained in:
2021-08-15 21:26:43 +10:00
parent 40c0e3631c
commit 652a89161d
7 changed files with 101 additions and 338 deletions

View File

@@ -593,6 +593,7 @@ def view_img(id):
# specific rotation job is finished (/checkrotatejob) which will be called (say) every 1 sec. from f/e
# with a spinning wheel, then when pa_job_mgr has finished it will return the rotated thumb
@app.route("/rotate", methods=["POST"])
@app.route("/transform", methods=["POST"])
@login_required
def rotate():
id = request.form['id']
@@ -617,6 +618,7 @@ def rotate():
# rotated image's thumbnail is returned so the f/e can
# update with it
################################################################################
@app.route("/checktransformjob", methods=["POST"])
@app.route("/checkrotatejob", methods=["POST"])
@login_required
def checkrotatejob():
@@ -637,7 +639,6 @@ def checkrotatejob():
################################################################################
@app.route("/internal/<path:filename>")
def internal(filename):
print( filename )
return send_from_directory("internal/", filename)
################################################################################