diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index ef9e00c0..c101743d 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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: