#11851 fixed setup interval editor
This commit is contained in:
parent
449d9fe3cb
commit
5a440f1078
|
@ -1927,7 +1927,7 @@ $table_other->data[$row][] = html_print_label_input_block(
|
||||||
).html_print_div(
|
).html_print_div(
|
||||||
[
|
[
|
||||||
'class' => '',
|
'class' => '',
|
||||||
'content' => __('Interval').html_print_select($units, 'interval_unit', 1, '', '', '', true, false, false, '', false, 'width: 100%'),
|
'content' => __('Interval').html_print_select($units, 'interval_unit', '', '', '', '', true, false, false, '', false, 'width: 100%'),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
).html_print_button(
|
).html_print_button(
|
||||||
|
@ -1975,7 +1975,7 @@ $table_other->data[$row][] = html_print_label_input_block(
|
||||||
).html_print_button(
|
).html_print_button(
|
||||||
__('Delete'),
|
__('Delete'),
|
||||||
'interval_del_btn',
|
'interval_del_btn',
|
||||||
empty($config['interval_values']),
|
false,
|
||||||
'',
|
'',
|
||||||
[
|
[
|
||||||
'mode' => 'link',
|
'mode' => 'link',
|
||||||
|
@ -2009,7 +2009,7 @@ $table_other->data[$row][] = html_print_label_input_block(
|
||||||
).html_print_div(
|
).html_print_div(
|
||||||
[
|
[
|
||||||
'class' => '',
|
'class' => '',
|
||||||
'content' => __('Interval').html_print_select($units, 'interval_unit', 1, '', '', '', true, false, false, '', false, 'width: 100%'),
|
'content' => __('Interval').html_print_select($units, 'module_interval_unit', 1, '', '', '', true, false, false, '', false, 'width: 100%'),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
).html_print_button(
|
).html_print_button(
|
||||||
|
@ -2316,9 +2316,15 @@ $(document).ready (function () {
|
||||||
// CUSTOM INTERVAL VALUES
|
// CUSTOM INTERVAL VALUES
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
$("#button-interval_del_btn").click( function() {
|
$("#button-interval_del_btn").click( function() {
|
||||||
var interval_selected = $('#intervals option:selected').val();
|
confirmDialog({
|
||||||
$('#hidden-interval_to_delete').val(interval_selected);
|
title: "<?php echo __('Delete interval'); ?>",
|
||||||
$('#submit-update_button').trigger('click');
|
message: "<?php echo __('This action is not reversible. Are you sure'); ?>",
|
||||||
|
onAccept: function() {
|
||||||
|
var interval_selected = $('#intervals option:selected').val();
|
||||||
|
$('#hidden-interval_to_delete').val(interval_selected);
|
||||||
|
$('#button-update_button').trigger('click');
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#button-interval_add_btn").click( function() {
|
$("#button-interval_add_btn").click( function() {
|
||||||
|
|
Loading…
Reference in New Issue