broad (small) changes to make style of all routes and jobs to be consistent, e.g. use underscords between words
This commit is contained in:
@@ -49,7 +49,7 @@ function change_rp_sel()
|
||||
function GetExistingDirsAsDiv( dt, divname, ptype )
|
||||
{
|
||||
$.ajax({
|
||||
type: 'POST', data: null, url: '/getexistingpaths/'+dt,
|
||||
type: 'POST', data: null, url: '/get_existing_paths/'+dt,
|
||||
success: function(data) {
|
||||
$('#'+divname).html(data)
|
||||
dirs = JSON.parse(data)
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
// newly created one that was sent back in the response to the POST
|
||||
function CheckTransformJob(id,job_id)
|
||||
{
|
||||
CheckForJobs()
|
||||
$.ajax(
|
||||
{
|
||||
type: 'POST', data: '&job_id='+job_id, url: '/checktransformjob', success: function(data) {
|
||||
type: 'POST', data: '&job_id='+job_id, url: '/check_transform_job', success: function(data) {
|
||||
if( data.finished )
|
||||
{
|
||||
$('#s'+id).hide()
|
||||
|
||||
@@ -48,7 +48,7 @@ function StatusMsg(st)
|
||||
// clear message only when toast is hidden (either timeout OR user clicks close btn)
|
||||
$('#' + el).on( 'hidden.bs.toast',
|
||||
function() {
|
||||
$.ajax( { type: 'POST', url: '/clearmsg/'+st.id, success: function(data) {} } )
|
||||
$.ajax( { type: 'POST', url: '/clear_msg/'+st.id, success: function(data) {} } )
|
||||
} )
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ function CheckForJobs()
|
||||
{
|
||||
$.ajax(
|
||||
{
|
||||
type: 'POST', url: '/checkforjobs',
|
||||
type: 'POST', url: '/check_for_jobs',
|
||||
success: function(data) {
|
||||
data.sts.forEach(
|
||||
function(el)
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
// newly created one that was sent back in the response to the POST
|
||||
function CheckTransformJob(id,job_id)
|
||||
{
|
||||
CheckForJobs()
|
||||
$.ajax(
|
||||
{
|
||||
type: 'POST', data: '&job_id='+job_id, url: '/checktransformjob', success: function(data) {
|
||||
type: 'POST', data: '&job_id='+job_id, url: '/check_transform_job', success: function(data) {
|
||||
if( data.finished )
|
||||
{
|
||||
// stop throbber, remove grayscale & then force reload with timestamped version of im.src
|
||||
|
||||
Reference in New Issue
Block a user