first-pass of popups for job creation for more than just move files, and fix BUG-112 (after move highlighting is broken)

This commit is contained in:
2023-01-04 12:26:25 +11:00
parent 7e115902fc
commit c3971eb495
7 changed files with 21 additions and 12 deletions

View File

@@ -61,6 +61,8 @@ function MoveSubmit()
{
// remove the images being moved
$("[name^=eid-]").each( function() { $('#'+$(this).attr('value')).remove() } )
// reorder the images via ecnt again, so highlighting can work
document.mf_id=0; $('.figure').each( function() { $(this).attr('ecnt', document.mf_id ); document.mf_id++ } )
$('#dbox').modal('hide')
$.ajax({ type: 'POST', data: $('#mv_fm').serialize(), url: '/move_files', success: function(data){ $('.toast-body').html( "Created&nbsp;<a class='link-light' href=/job/" + data.job_id + ">Job #" + data.job_id + "</a>&nbsp;to move selected file(s)" ); $('.toast').toast("show"); return false; } })
}