mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
2c7e4c1dd4
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92851 467b73ca-7a2a-4603-9d3b-597d59a354a9
36 lines
880 B
JavaScript
Executable File
36 lines
880 B
JavaScript
Executable File
(function($) {
|
|
/**
|
|
* Delete selected folders through "batch actions" tab.
|
|
*/
|
|
$(document).ready(function() {
|
|
$('#Form_BatchActionsForm').concrete('ss').register(
|
|
// TODO Hardcoding of base URL
|
|
'admin/security/batchactions/delete',
|
|
function(ids) {
|
|
var confirmed = confirm(
|
|
ss.i18n.sprintf(
|
|
ss.i18n._t('SecurityAdmin.BATCHACTIONSDELETECONFIRM'),
|
|
ids.length
|
|
)
|
|
);
|
|
return (confirmed) ? ids : false;
|
|
}
|
|
);
|
|
});
|
|
|
|
$.concrete('ss', function($){
|
|
$('#Form_EditForm .Actions #action_addmember').concrete({
|
|
onclick: function(e) {
|
|
// CAUTION: Assumes that a MemberTableField-instance is present as an editing form
|
|
var t = $('#Form_EditForm_Members');
|
|
t[0].openPopup(
|
|
null,
|
|
$('base').attr('href') + t.find('a.addlink').attr('href'),
|
|
t.find('table')[0]
|
|
);
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
}(jQuery)); |