more comments for js files

This commit is contained in:
2021-09-07 21:50:01 +10:00
parent 1b11fba0a8
commit e25cb9fd02
2 changed files with 168 additions and 150 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)
{
id=$('#current').val()