colymba f54f0ce223 FIX Refactor JS bulk action handling
JS bulk action handling now works for any custom action
2013-12-01 18:51:30 +02:00

11 lines
487 B
JavaScript

if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('en_US', {
'GridFieldBulkTools.FINISH_CONFIRM': "You have unsaved changes. Continuing will loose all unsaved data.\n\nDo your really want to continue?",
'GridFieldBulkTools.EDIT_CHANGED': 'Modified',
'GridFieldBulkTools.EDIT_UPDATED': 'Saved',
'GridFieldBulkTools.BULKACTION_EMPTY_SELECT': 'You must select at least one record.'
});
}