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/branches/2.3@77385 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 06:55:19 +00:00 committed by Sam Minnee
parent 60ff36ea47
commit a63bc595ff

View File

@ -126,7 +126,6 @@ Behaviour.register({
window.ontabschanged = function() {
var formEl = $('Form_EditForm');
if( !formEl ) formEl = $('Form_AddForm');
if( !formEl )
return;
@ -157,7 +156,7 @@ window.onresize = function(init) {
if(typeof fitToParent == 'function') {
fitToParent('right', 12);
if($('ModelAdminPanel')) {
fitToParent('ModelAdminPanel',-60);
fitToParent('ModelAdminPanel',-30);
}
if($('contentPanel')) {
fitToParent('contentPanel', 12);
@ -176,9 +175,7 @@ window.onresize = function(init) {
}
if(typeof fitToParent == 'function') {
if($('Form_EditForm')) fitToParent('Form_EditForm', 4);
if($('Form_AddForm')) fitToParent('Form_AddForm', 4);
fitToParent('Form_EditForm', 4);
if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") {
fitToParent('Form_EditorToolbarImageForm', 5);
fitToParent($('Form_EditorToolbarImageForm').getElementsByTagName('fieldset')[0]);
@ -289,25 +286,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: