2017-05-01 05:54:48 +02:00
|
|
|
(function ($) {
|
2017-05-17 00:58:51 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
$.entwine('ss', function ($) {
|
|
|
|
$('.ss-gridfield-item a.file-url').entwine({
|
|
|
|
onclick: function (e) {
|
2017-05-30 06:46:45 +02:00
|
|
|
// Make sure the download link doesn't trigger a gridfield edit dialog
|
2017-05-17 00:58:51 +02:00
|
|
|
window.open(this.attr('href'), '_blank');
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
2017-06-06 23:31:08 +02:00
|
|
|
|
|
|
|
$('.ss-gridfield-item a.dms-doc-sets-link').entwine({
|
|
|
|
onclick: function (e){
|
|
|
|
// Prevent the initial flash of the gridfield's edit form
|
|
|
|
e.preventDefault();
|
|
|
|
document.location.href=this.attr('href');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
2017-05-17 00:58:51 +02:00
|
|
|
});
|
2012-08-01 05:00:43 +02:00
|
|
|
}(jQuery));
|