mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #176 from creative-commoners/pulls/2.0/remove-confirmation-message-on-delete
FIX Remove customised delete confirmation message, it taints the global scope
This commit is contained in:
commit
4d83b95040
@ -17,8 +17,8 @@ class DMSDocumentAdmin extends ModelAdmin
|
||||
{
|
||||
parent::init();
|
||||
Requirements::javascript(DMS_DIR . '/javascript/DMSGridField.js');
|
||||
Requirements::add_i18n_javascript(DMS_DIR . '/javascript/lang');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default "add" button and replace it with a customised version for DMS
|
||||
*
|
||||
|
@ -1,11 +0,0 @@
|
||||
// This file was generated by silverstripe/cow from javascript/lang/src/en.js.
|
||||
// See https://github.com/tractorcow/cow for details
|
||||
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
|
||||
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
|
||||
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
|
||||
}
|
||||
} else {
|
||||
ss.i18n.addDictionary('en', {
|
||||
"TABLEFIELD.DELETECONFIRMMESSAGE": "Are you sure you want to delete this record? The documents will remain on the system.",
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user