mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
60200f1aa3
commit
7bef4158e8
@ -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.
|
* Submit the given form and evaluate the Ajax response.
|
||||||
* Needs to be bound to an object with the following parameters to work:
|
* Needs to be bound to an object with the following parameters to work:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user