Skip to content

Commit

Permalink
Added Tooltips for Datetime and Timestamp fields
Browse files Browse the repository at this point in the history
Signed-off-by: Hrushikesh <hrushi.23paturu@gmail.com>
Signed-off-by: hrushi2311 <hrushi.23paturu@gmail.com>
  • Loading branch information
hrushi2311 committed Mar 30, 2023
1 parent 03db39a commit a828fa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/src/modules/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ Functions.addDateTimePicker = function () {
tooltip($(this), 'input', window.Messages.strMysqlAllowedValuesTipTime);
} else if ($(this).hasClass('datefield')) {
tooltip($(this), 'input', window.Messages.strMysqlAllowedValuesTipDate);
} else if ($(this).hasClass('datetimefield')) {
tooltip($(this), 'input', window.Messages.strMysqlAllowedValuesTipDatetime);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ private function setMessages(): array
. ' key in those values directly if desired',
),

/* For Tip to be shown on Datetime and Timestamp fields */
'strMysqlAllowedValuesTipDatetime' => __(
'MySQL accepts additional values not selectable by the datepicker or slider;'
. ' type those values directly if desired',
),

/* For Lock symbol Tooltip */
'strLockToolTip' => __(
'Indicates that you have made changes to this page;'
Expand Down

0 comments on commit a828fa6

Please sign in to comment.