Bug 33484: Add 'Copied!' tooltip when the button is clicked
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
545b7a707a
commit
80e37da75f
|
|
@ -233,7 +233,7 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters) {
|
|||
let url = window.location.origin + window.location.pathname + '?' + searchParams.toString() + window.location.hash;
|
||||
if( navigator.clipboard && navigator.clipboard.writeText){
|
||||
navigator.clipboard.writeText( url );
|
||||
// TODO Add tooltip "State copied to the clipboard"
|
||||
$(node).tooltip({trigger: 'manual', title: _("Copied!")}).tooltip('show');
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -779,7 +779,7 @@ function _dt_buttons(params){
|
|||
let url = window.location.origin + window.location.pathname + '?' + searchParams.toString() + window.location.hash;
|
||||
if( navigator.clipboard && navigator.clipboard.writeText){
|
||||
navigator.clipboard.writeText( url );
|
||||
// TODO Add tooltip "State copied to the clipboard"
|
||||
$(node).tooltip({trigger: 'manual', title: _("Copied!")}).tooltip('show');
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue