#12621 style tips dialogs
This commit is contained in:
parent
b22ad532b2
commit
c725624dcb
|
@ -1370,7 +1370,7 @@ $table_advanced->data['title_4'] = html_print_subtitle_table(__('Data and their
|
|||
$table_advanced->rowclass['caption_process_unit'] = 'w50p';
|
||||
$table_advanced->rowclass['process_unit'] = 'w50p';
|
||||
$table_advanced->data['caption_process_unit'][0] = __('Unit');
|
||||
$table_advanced->data['caption_process_unit'][1] = __('Post process');
|
||||
$table_advanced->data['caption_process_unit'][1] = __('Post process').ui_print_help_tip(__('It allows you to change the unit of the received data. To do this, multiply the data received by the value set in this option (e.g. Seconds * 0.016666666667 = Minutes). The data is saved already transformed in the database, so changing this parameter when the module has data can cause anomalies in graphs and other elements.'), true);
|
||||
$table_advanced->data['process_unit'][0] = html_print_extended_select_for_unit(
|
||||
'unit',
|
||||
$unit,
|
||||
|
|
|
@ -417,7 +417,7 @@ $table->data[$i][] = html_print_label_input_block(
|
|||
);
|
||||
|
||||
$table->data[$i++][] = html_print_label_input_block(
|
||||
__('Enable Feedback').ui_print_help_tip(__(' It enables the "give feedback" window in the help menu at the top right.'), true),
|
||||
__('Enable Feedback').ui_print_help_tip(__(' It enables the \'give feedback\' window in the help menu at the top right.'), true),
|
||||
html_print_checkbox_switch_extended(
|
||||
'activate_feedback',
|
||||
true,
|
||||
|
|
|
@ -1809,7 +1809,7 @@ $table_other->data[$row][] = html_print_label_input_block(
|
|||
);
|
||||
|
||||
$table_other->data[$row][] = html_print_label_input_block(
|
||||
__('Date format string')ui_print_help_tip(__('It uses a unix datetime format definition string.'), true),
|
||||
__('Date format string').ui_print_help_tip(__('It uses a unix datetime format definition string.'), true),
|
||||
html_print_input_text(
|
||||
'date_format',
|
||||
$config['date_format'],
|
||||
|
|
|
@ -2940,6 +2940,8 @@ function ui_print_help_tip(
|
|||
$img = 'images/info@svg.svg';
|
||||
}
|
||||
|
||||
$text_title = (strlen($text) >= 60) ? substr($text, 0, 60).'...' : $text;
|
||||
|
||||
$id = random_int(1, 99999);
|
||||
$output = '<div id="div_tip_'.$id.'" class="tip" style="'.$style.'" >';
|
||||
$output .= '<div id="tip_dialog_'.$id.'" class="invisible margin-15" data-title="'.__('Help').'"><span class="font_13px">'.$text.'</span></div>';
|
||||
|
@ -2947,7 +2949,7 @@ function ui_print_help_tip(
|
|||
$img,
|
||||
true,
|
||||
[
|
||||
'title' => $text,
|
||||
'title' => $text_title,
|
||||
'class' => $blink === true ? 'blink' : '',
|
||||
'style' => 'width: 16px; height: 16px;',
|
||||
],
|
||||
|
|
|
@ -2459,6 +2459,7 @@ $(document).ready(function() {
|
|||
$("#tip_dialog_" + id).dialog({
|
||||
title: $("#tip_dialog_" + id).data("title"),
|
||||
modal: true,
|
||||
maxWidth: 600,
|
||||
show: {
|
||||
effect: "fade",
|
||||
duration: 200
|
||||
|
|
Loading…
Reference in New Issue