mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
stop event propagation after clicking on addtoclipboard button
This commit is contained in:
parent
a6ef05b22b
commit
4ac3dc0052
|
@ -157,6 +157,7 @@ $(document).ready( function() {
|
||||||
|
|
||||||
$('body').on('click', 'a.addtoclipboard', function(ev) { /* {{{ */
|
$('body').on('click', 'a.addtoclipboard', function(ev) { /* {{{ */
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
attr_rel = $(ev.currentTarget).attr('rel');
|
attr_rel = $(ev.currentTarget).attr('rel');
|
||||||
attr_msg = $(ev.currentTarget).attr('msg');
|
attr_msg = $(ev.currentTarget).attr('msg');
|
||||||
type = attr_rel.substring(0, 1) == 'F' ? 'folder' : 'document';
|
type = attr_rel.substring(0, 1) == 'F' ? 'folder' : 'document';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user