mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
(function ($) {
|
|
"use strict";
|
|
|
|
$.entwine('ss', function ($) {
|
|
$('.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;
|
|
}
|
|
});
|
|
});
|
|
}(jQuery));
|