mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-06-06 07:11:54 +00:00
update UI
This commit is contained in:
parent
f983efc1fb
commit
b7a13462fd
1
ajax.php
1
ajax.php
@ -107,7 +107,6 @@ switch ($action) {
|
||||
$task = new CRObject();
|
||||
$task->set('job', cr_get_GET('job'));
|
||||
$task->set('task', cr_get_GET('task'));
|
||||
$task->set('task', 'node1');
|
||||
$res = task_logs($task);
|
||||
break;
|
||||
|
||||
|
@ -229,7 +229,7 @@ function jobOperateFormatter(value, row, index) {
|
||||
div += '<button class="btn btn-default config"><i class="glyphicon glyphicon-cog"></i> </button>';
|
||||
if (page_type === 'jobs')
|
||||
div += '<button class="btn btn-default stats"><i class="glyphicon glyphicon-eye-open"></i> </button>';
|
||||
if (page_type === 'jobs' && (parseInt(row.status) === 0 || parseInt(row.status) === 1))
|
||||
if (page_type === 'jobs' && (parseInt(row.status) !== 3 && parseInt(row.status) !== 4))
|
||||
div += '<button class="btn btn-default stop"><i class="glyphicon glyphicon-remove"></i> </button>';
|
||||
div += '</div>';
|
||||
return div;
|
||||
@ -296,7 +296,8 @@ function load_job_status(name) {
|
||||
field: 'id',
|
||||
title: 'ID',
|
||||
align: 'center',
|
||||
valign: 'middle'
|
||||
valign: 'middle',
|
||||
visible: false
|
||||
}, {
|
||||
field: 'image',
|
||||
title: 'Image',
|
||||
|
Loading…
Reference in New Issue
Block a user