🚸 prevent propagation of copylink click
This commit is contained in:
parent
be86d2636d
commit
c02e3dbab9
@ -6,7 +6,7 @@ window.addEventListener("load", function(event){
|
||||
let copylink_button_list = document.getElementsByClassName("copylink");
|
||||
for(let one_copylink_button of copylink_button_list){
|
||||
// register onclick function
|
||||
one_copylink_button.onclick = function(){ copylink_click(this) };
|
||||
one_copylink_button.onclick = function(event){ copylink_click(this, event) };
|
||||
|
||||
// add descriptive title
|
||||
one_copylink_button.title = copylink_hint_text;
|
||||
@ -20,7 +20,8 @@ window.addEventListener("load", function(event){
|
||||
*
|
||||
* @param self Copylink button element.
|
||||
*/
|
||||
async function copylink_click(self){
|
||||
async function copylink_click(self, event){
|
||||
event.stopPropagation();
|
||||
let success = true;
|
||||
|
||||
// RETRIEVE SECTION ID //
|
||||
|
Loading…
Reference in New Issue
Block a user