2017-05-01 15:54:48 +12:00
|
|
|
(function ($) {
|
2017-05-17 10:58:51 +12:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
$.entwine('ss', function ($) {
|
|
|
|
$('.ss-gridfield-item a.file-url').entwine({
|
|
|
|
onclick: function (e) {
|
2017-05-30 16:46:45 +12:00
|
|
|
// Make sure the download link doesn't trigger a gridfield edit dialog
|
2017-05-17 10:58:51 +12:00
|
|
|
window.open(this.attr('href'), '_blank');
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
2017-06-07 09:31:08 +12: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 10:58:51 +12:00
|
|
|
});
|
2012-08-01 15:00:43 +12:00
|
|
|
}(jQuery));
|