mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
not all cms panel has sitetree, so better check if($('sitetree')) exsit, otherwise IE broken with all genericDataAdmin panel.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48862 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
71736d4ea8
commit
0672ce2d0a
@ -4,12 +4,14 @@ 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;
|
||||
} );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
RelationComplexTableField = Class.create();
|
||||
|
Loading…
Reference in New Issue
Block a user