This commit is contained in:
tianshujie
2024-05-15 09:49:18 +08:00
parent 7801f279ea
commit 4ab87c187e
4 changed files with 6 additions and 5 deletions
+2
View File
@@ -40,3 +40,5 @@ UPDATE `zt_kanbancard` SET `color` = '#fc5959' WHERE `color` = '#cfa227';
UPDATE `zt_kanbancard` SET `color` = '#ff9f46' WHERE `color` = '#2a5f29';
INSERT INTO `zt_cron`(`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type`, `buildin`, `status`, `lastTime`) VALUES ('0', '*/1', '*', '*', '*', 'moduleName=metric&methodName=updateDashboardMetricLib', '计算仪表盘数据', 'zentao', 1, 'normal', NUll);
UPDATE `zt_todo` SET `type` = 'custom' WHERE `type` = 'cycle' AND `cycle` = 0;
+2 -3
View File
@@ -251,12 +251,11 @@ function changeDate(event)
* 验证间隔天数是否为空。
* Verify if the sapceDay value is empty.
*
* @param object spaceDay
* @return void
*/
function verifySpaceDay(event)
function verifySpaceDay()
{
if(typeof event.target.value != 'undefined' && !event.target.value) $(event.target).closest('.input-control').addClass('has-error');
if($('#spaceDay').length > 0 && !$('#spaceDay').val()) $(this).closest('.input-control').addClass('has-error');
}
/**
+1 -1
View File
@@ -181,7 +181,7 @@ class todoTao extends todoModel
$newTodo->account = $todo->account;
$newTodo->begin = $todo->begin;
$newTodo->end = $todo->end;
$newTodo->type = 'cycle';
$newTodo->type = 'custom';
$newTodo->objectID = $todo->id;
$newTodo->pri = $todo->pri;
$newTodo->name = $todo->name;
+1 -1
View File
@@ -154,7 +154,7 @@ formPanel
(
setID('spaceDay'),
set::name('config[day]'),
on::blur('verifySpaceDay(this)')
on::blur('verifySpaceDay')
)
)
)