use current var in view_transform, rather than #current - we deleted that ages ago, this fixed BUG-67
This commit is contained in:
@@ -30,8 +30,7 @@ function CheckTransformJob(id,job_id)
|
||||
// to finish
|
||||
function Transform(amt)
|
||||
{
|
||||
id=$('#current').val()
|
||||
post_data = '&amt='+amt+'&id='+id
|
||||
post_data = '&amt='+amt+'&id='+current
|
||||
// send /transform for this image, grayscale the thumbmail, add color spinning wheel overlay, and start checking for job end
|
||||
$.ajax({ type: 'POST', data: post_data, url: '/transform', success: function(data) { grayscale=1; throbber=1; DrawImg(); CheckTransformJob(id,data.job_id); return false; } })
|
||||
$.ajax({ type: 'POST', data: post_data, url: '/transform', success: function(data) { grayscale=1; throbber=1; DrawImg(); CheckTransformJob(current,data.job_id); return false; } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user