API CHANGE Removed @deprecated 2.3 JS function ingize() from LeftAndMain.js: Please use ss.i18n instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77391 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 07:17:39 +00:00
parent 60200f1aa3
commit 7bef4158e8

View File

@ -289,25 +289,6 @@ function prepareAjaxActions(actions, formName, tabName) {
}
}
/**
* @deprecated 2.3 Please use ss.i18n
*/
function ingize(val) {
var ingWord, suffix;
if(!val) val = "process";
if(val.match(/^([^ ]+) +(.*)$/)) {
ingWord = RegExp.$1;
suffix = ' ' + RegExp.$2 + '...';
} else {
ingWord = val;
suffix = '...';
}
if(ingWord.match(/^(.*)e$/)) return RegExp.$1 + 'ing' + suffix;
else return ingWord + 'ing' + suffix;
}
/**
* Submit the given form and evaluate the Ajax response.
* Needs to be bound to an object with the following parameters to work: