sys cron reload fix, log 2h fix
This commit is contained in:
parent
d2d05db0fb
commit
c9d9673534
@ -50,7 +50,12 @@ function register_cron_add(){
|
||||
month: month},
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
console.log("new cronjob added");
|
||||
if(data.status){
|
||||
$('#content-wrapper').load(SAI_ENDPOINT + 'sai_mod=.SYSTEM.SAI.saimod_sys_cron',function(){
|
||||
init__SYSTEM_SAI_saimod_sys_cron();
|
||||
});
|
||||
}else{
|
||||
alert('Problem: '+data);}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@ -17,6 +17,8 @@ class saimod_sys_cron extends \SYSTEM\SAI\SaiModule {
|
||||
public static function sai_mod__system_sai_saimod_sys_cron_action_add($cls,$min,$hour,$day,$day_week,$month){
|
||||
if(!\SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_CRON)){
|
||||
throw new \SYSTEM\LOG\ERROR("You dont have edit Rights - Cant proceeed");}
|
||||
if(!\SYSTEM\CRON\cron::check($cls)){
|
||||
throw new \SYSTEM\LOG\ERROR("Given Class is not a CronJob");}
|
||||
\SYSTEM\DBD\SYS_SAIMOD_CRON_ADD::QI(array($cls,$min,$hour,$day,$day_week,$month));
|
||||
return \SYSTEM\LOG\JsonResult::ok();
|
||||
}
|
||||
|
||||
@ -20,11 +20,11 @@
|
||||
${content}
|
||||
<tr>
|
||||
<td><input type="text" id="input_cron_class" placeholder="class" style="width: 200px;"></td>
|
||||
<td><input type="text" id="input_cron_min" placeholder="min" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_hour" placeholder="hour" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_day" placeholder="day" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_day_week" placeholder="day_week" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_month" placeholder="month" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_min" placeholder="min" value="0" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_hour" placeholder="hour" value="0" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_day" placeholder="day" value="0" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_day_week" placeholder="day_week" value="0" style="width: 40px;"></td>
|
||||
<td><input type="text" id="input_cron_month" placeholder="month" value="0" style="width: 40px;"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<option value="43200">12h</option>
|
||||
<option value="21600">6h</option>
|
||||
<option value="14400">4h</option>
|
||||
<option value="172800">2h</option>
|
||||
<option value="7200">2h</option>
|
||||
<option value="3600">1h</option>
|
||||
<option value="1800">30m</option>
|
||||
<option value="600">10m</option>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user