Skip to content

Commit 85c8385

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 8cf3e5a + de7a964 commit 85c8385

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

resources/js/src/modules/functions.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,24 @@ function dismissNotifications () {
15291529
var copyStatus = Functions.copyToClipboard($(this).attr('data-text'));
15301530
displayCopyStatus(this, copyStatus);
15311531
});
1532+
1533+
$(document).on('mouseover mouseleave', '.ajax_notification a', function (event) {
1534+
let message = window.Messages.strDismiss;
1535+
1536+
if (event.type === 'mouseover') {
1537+
message = $(this).hasClass('copyQueryBtn') ? window.Messages.strCopyToClipboard : window.Messages.strEditQuery;
1538+
}
1539+
1540+
tooltip(
1541+
$('.ajax_notification'),
1542+
'span',
1543+
message
1544+
);
1545+
});
1546+
1547+
$(document).on('mouseup', '.ajax_notification a', function (event) {
1548+
event.stopPropagation();
1549+
});
15321550
};
15331551
}
15341552

src/Controllers/JavaScriptMessagesController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ private function getMessages(): array
398398
'strHideQueryBox' => __('Hide query box'),
399399
'strShowQueryBox' => __('Show query box'),
400400
'strEdit' => __('Edit'),
401+
'strEditQuery' => __('Edit query'),
401402
'strDelete' => __('Delete'),
402403
'strNotValidRowNumber' => __('%d is not valid row number.'),
403404
'strBrowseForeignValues' => __('Browse foreign values'),
@@ -485,6 +486,7 @@ private function getMessages(): array
485486

486487
/* For table/change.js */
487488
'strIgnore' => __('Ignore'),
489+
'strCopyToClipboard' => __('Copy to clipboard'),
488490
'strCopy' => __('Copy'),
489491
'strX' => __('X'),
490492
'strY' => __('Y'),

0 commit comments

Comments
 (0)