File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ' ),
You can’t perform that action at this time.
0 commit comments