mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02: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/branches/2.3@77385 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
60ff36ea47
commit
a63bc595ff
@ -126,7 +126,6 @@ Behaviour.register({
|
|||||||
|
|
||||||
window.ontabschanged = function() {
|
window.ontabschanged = function() {
|
||||||
var formEl = $('Form_EditForm');
|
var formEl = $('Form_EditForm');
|
||||||
if( !formEl ) formEl = $('Form_AddForm');
|
|
||||||
|
|
||||||
if( !formEl )
|
if( !formEl )
|
||||||
return;
|
return;
|
||||||
@ -157,7 +156,7 @@ window.onresize = function(init) {
|
|||||||
if(typeof fitToParent == 'function') {
|
if(typeof fitToParent == 'function') {
|
||||||
fitToParent('right', 12);
|
fitToParent('right', 12);
|
||||||
if($('ModelAdminPanel')) {
|
if($('ModelAdminPanel')) {
|
||||||
fitToParent('ModelAdminPanel',-60);
|
fitToParent('ModelAdminPanel',-30);
|
||||||
}
|
}
|
||||||
if($('contentPanel')) {
|
if($('contentPanel')) {
|
||||||
fitToParent('contentPanel', 12);
|
fitToParent('contentPanel', 12);
|
||||||
@ -176,9 +175,7 @@ window.onresize = function(init) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(typeof fitToParent == 'function') {
|
if(typeof fitToParent == 'function') {
|
||||||
if($('Form_EditForm')) fitToParent('Form_EditForm', 4);
|
fitToParent('Form_EditForm', 4);
|
||||||
if($('Form_AddForm')) fitToParent('Form_AddForm', 4);
|
|
||||||
|
|
||||||
if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") {
|
if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") {
|
||||||
fitToParent('Form_EditorToolbarImageForm', 5);
|
fitToParent('Form_EditorToolbarImageForm', 5);
|
||||||
fitToParent($('Form_EditorToolbarImageForm').getElementsByTagName('fieldset')[0]);
|
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.
|
* 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…
Reference in New Issue
Block a user