comments for files*js

This commit is contained in:
2021-09-06 22:03:11 +10:00
parent 57281be3d1
commit 1b11fba0a8
2 changed files with 30 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
// POST to a check URL, that will tell us if the transformation has completed,
// if not, try again in 1 second... If it has finished then reset the thumbnail
// to full colour, put it back to being an entry and reset the thumbnail to the
// newly created one that was sent back in the response to the POST
function CheckTransformJob(id,job_id)
{
$.ajax(
@@ -19,6 +23,11 @@ function CheckTransformJob(id,job_id)
} )
}
// for each highlighted image, POST the transform with amt (90, 180, 270,
// fliph, flipv) which will let the job manager know what to do to this file.
// we also grayscale the thumbnail out, remove the entry class for now, show
// the spinning wheel, and finally kick of the checking for the transform job
// to finish
function Transform(amt)
{
$('.highlight').each(function( id, e ) {