From c89d0dc9810c1fffa0f1353f72379ca63aa34eaf Mon Sep 17 00:00:00 2001 From: Ingo Schommer <ingo@silverstripe.com> Date: Wed, 30 Jan 2008 05:29:14 +0000 Subject: [PATCH] fixed "object not found" error in ie6 (somehow Observable is not applied to sitetree at window-load) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48840 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/RelationComplexTableField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/RelationComplexTableField.js b/javascript/RelationComplexTableField.js index 2e98a29e5..1d490a678 100644 --- a/javascript/RelationComplexTableField.js +++ b/javascript/RelationComplexTableField.js @@ -4,7 +4,7 @@ var checkedListField = 'selected'; var checkedArray = null; Event.observe( window, 'load', function() { - if($('sitetree')) { + if(typeof $('sitetree').observeMethod != 'undefined') { $('sitetree').observeMethod( 'NodeClicked' , function() { checkedListNameArray = null; checkedArray = null;