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:
@@ -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 <a class='link-light' href=/job/" + data.job_id + ">Job #" + data.job_id + "</a> to move selected file(s)" ); $('.toast').toast("show"); return false; } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user