use current var in view_transform, rather than #current - we deleted that ages ago, this fixed BUG-67

This commit is contained in:
2021-09-29 17:23:31 +10:00
parent 98475c1939
commit 90c8ba4d9d
2 changed files with 3 additions and 5 deletions

3
BUGs
View File

@@ -1,6 +1,5 @@
### Next: 67 ### Next: 68
BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry
BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think
BUG-61: in Fullscreen mode and next/prev occasionally dropped out of FS BUG-61: in Fullscreen mode and next/prev occasionally dropped out of FS
this is just another consequence of going beyond Pagesize, when we get new entries from DB, it loses FS flag this is just another consequence of going beyond Pagesize, when we get new entries from DB, it loses FS flag
BUG-67: seem to have broken rotations from viewer?

View File

@@ -30,8 +30,7 @@ function CheckTransformJob(id,job_id)
// to finish // to finish
function Transform(amt) function Transform(amt)
{ {
id=$('#current').val() post_data = '&amt='+amt+'&id='+current
post_data = '&amt='+amt+'&id='+id
// send /transform for this image, grayscale the thumbmail, add color spinning wheel overlay, and start checking for job end // 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; } })
} }