mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
FIX Remove customised delete confirmation message, it taints the global scope
This commit is contained in:
parent
ed32ce949e
commit
a76b1d0256
@ -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