From 22572f3b8ea9c3d5ed8dc513360e3a747b9cab32 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 8 Oct 2008 04:18:13 +0000 Subject: [PATCH] BUGFIX Added missing default english text to i18n call in TableField and TableListField javascript git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63839 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/TableField.js | 2 +- javascript/TableListField.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/TableField.js b/javascript/TableField.js index 30d546534..ecfa68104 100755 --- a/javascript/TableField.js +++ b/javascript/TableField.js @@ -76,7 +76,7 @@ Object.extend(TableField.prototype,{ } // TODO ajaxErrorHandler and loading-image are dependent on cms, but formfield is in sapphire - var confirmed = confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE')); + var confirmed = confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE', 'Are you sure you want to delete this record?')); if(confirmed){ img.setAttribute("src",'cms/images/network-save.gif'); // TODO doesn't work new Ajax.Request( diff --git a/javascript/TableListField.js b/javascript/TableListField.js index 4be78a361..fbd428b9f 100755 --- a/javascript/TableListField.js +++ b/javascript/TableListField.js @@ -79,7 +79,7 @@ TableListField.prototype = { var row = Event.findElement(e,"tr"); // TODO ajaxErrorHandler and loading-image are dependent on cms, but formfield is in sapphire - var confirmed = confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE')); + var confirmed = confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE', 'Are you sure you want to delete this record?')); if(confirmed) { img.setAttribute("src",'cms/images/network-save.gif'); // TODO doesn't work