mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
ENHANCEMENT: not trigger a grid field detail edit dialog when clicking on a download link
This commit is contained in:
parent
051ec353ab
commit
aaac430e62
@ -80,6 +80,13 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('.ss-gridfield-item a.file-url').entwine({
|
||||
onclick: function(e) {
|
||||
//make sure the download link doesn't trigger a gridfield edit dialog
|
||||
window.open(this.attr('href'), '_blank');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user