From a76b1d0256f6dbd0919521351ce5c0955433fbac Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 13 Jun 2017 15:21:22 +1200 Subject: [PATCH] FIX Remove customised delete confirmation message, it taints the global scope --- code/cms/DMSDocumentAdmin.php | 2 +- javascript/lang/en.js | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 javascript/lang/en.js diff --git a/code/cms/DMSDocumentAdmin.php b/code/cms/DMSDocumentAdmin.php index 5322aa6..5bbb353 100644 --- a/code/cms/DMSDocumentAdmin.php +++ b/code/cms/DMSDocumentAdmin.php @@ -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 * diff --git a/javascript/lang/en.js b/javascript/lang/en.js deleted file mode 100644 index 5f86afa..0000000 --- a/javascript/lang/en.js +++ /dev/null @@ -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.", -}); -}