Permalink
Browse files

Need to test for if siteTreeFilterList as it isn't present in asset m…

…anager view, and so js error happens. which stops moving files to folders from working.
  • Loading branch information...
1 parent 85a0957 commit 00bc0f877f85c4b6abae53cf714e3ff47bbc0858 @asecondwill committed Nov 4, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 javascript/LeftAndMain_Subsites.js
@@ -10,7 +10,9 @@ Behaviour.register({
$('sitetree').innerHTML = response.responseText;
SiteTree.applyTo($('sitetree'));
$('sitetree').getTreeNodeByIdx(0).onselect();
- $('siteTreeFilterList').reapplyIfNeeded();
+ if ($('siteTreeFilterList')) {
+ $('siteTreeFilterList').reapplyIfNeeded();
+ }
}
},

0 comments on commit 00bc0f8

Please sign in to comment.