move files now has bs toast pop for success and stays on the page you are on for more moves

This commit is contained in:
2023-01-03 22:46:29 +11:00
parent 972eac5b5b
commit 0eeb68658b
4 changed files with 12 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ function MoveSubmit()
// remove the images being moved
$("[name^=eid-]").each( function() { $('#'+$(this).attr('value')).remove() } )
$('#dbox').modal('hide')
$.ajax({ type: 'POST', data: $('#mv_fm').serialize(), url: '/move_files', success: function(data){ console.log(data); return false; } })
$.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; } })
}
// show the DBox for a move file, includes all thumbnails of selected files to move