From 6c1a789cacce6af8204149bbec444650600925b0 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Thu, 23 Apr 2009 04:56:58 +0000 Subject: [PATCH] BUGFIX: when load a new Page (or other type of form in DataAdmin or GenericAdmin), initTabstripe called additional time for every tabstrip on the page git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75030 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_right.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 6e36a081..870f6657 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -120,12 +120,8 @@ CMSForm.prototype = { _TAB_DIVS_ON_PAGE = []; - try { - var tabs = document.getElementsBySelector('#' + this.id + ' ul.tabstrip'); - } catch(er) { /*alert('a: '+ er.message + '\n' + er.line);*/ } - try { - for(var i=0;i