ENHANCEMENT: not trigger a grid field detail edit dialog when clicking on a download link

This commit is contained in:
Julian Seidenberg 2012-08-07 18:37:34 +12:00
parent 051ec353ab
commit aaac430e62

View File

@ -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;
}
});