FIX Remove customised delete confirmation message, it taints the global scope

This commit is contained in:
Robbie Averill 2017-06-13 15:21:22 +12:00
parent ed32ce949e
commit a76b1d0256
2 changed files with 1 additions and 12 deletions

View File

@ -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
*

View File

@ -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.",
});
}