@@ -242,15 +242,13 @@ function showProcessesDone() {
242
242
toastr.info('<?php echo $ lang ->get ('loading_data ' ); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>');
243
243
244
244
if ($(this).data('type') === "add-new-job") {
245
- console.log('add new job')
246
245
$.post(
247
246
"sources/utilities.queries.php", {
248
247
type: "handle_crontab_job",
249
248
key: "<?php echo $ session ->get ('key ' ); ?> "
250
249
},
251
250
function(data) {
252
251
data = prepareExchangedData(data, "decode", "<?php echo $ session ->get ('key ' ); ?> ");
253
- console.log(data)
254
252
255
253
// Inform user
256
254
toastr.remove();
@@ -289,9 +287,11 @@ function fetchTaskData(){
289
287
// Fetch data
290
288
setTimeout(fetchTaskData,20000);
291
289
292
- // show value on slider
290
+ // Synchronize range slider with number input
293
291
$('.form-control-range').on("input", function() {
294
- $('#'+$(this).attr('id')+'_text').val($(this).val());
292
+ const rangeValue = $(this).val();
293
+ const numberInputId = '#' + $(this).attr('id') + '_text';
294
+ $(numberInputId).val(rangeValue);
295
295
});
296
296
297
297
// Handle delete task
@@ -307,7 +307,6 @@ function fetchTaskData(){
307
307
},
308
308
function(data) {
309
309
data = prepareExchangedData(data, "decode", "<?php echo $ session ->get ('key ' ); ?> ");
310
- console.log(data)
311
310
312
311
$("#task-delete-user-confirm").modal('hide');
313
312
@@ -378,7 +377,7 @@ function(data) {
378
377
);
379
378
return false;
380
379
}
381
- console.log(data)
380
+
382
381
if (data.error === false) {
383
382
toastr.remove();
384
383
toastr.success(
@@ -413,7 +412,6 @@ function(data) {
413
412
let task = $(this).data('task'),
414
413
definition = $('#'+task+'_parameter_value').val().split(';');
415
414
416
- console.log($('#'+task+'_parameter_value').val()+" -- "+definition[0]+";"+definition[1]+";"+definition[2])
417
415
if (definition[0] === "hourly") {
418
416
$('#task-define-modal-parameter-hourly').removeClass('hidden');
419
417
$('#task-define-modal-parameter-daily, #task-define-modal-parameter-monthly').addClass('hidden');
@@ -512,7 +510,7 @@ function(data) {
512
510
manuelTaskIsRunning = false;
513
511
return false;
514
512
}
515
- console.log(data);
513
+
516
514
if (data.error === false) {
517
515
toastr.remove();
518
516
toastr.success(
0 commit comments