diff --git a/javascript/CMSMain_left.js b/javascript/CMSMain_left.js index 0b256432..6f8b5cfd 100755 --- a/javascript/CMSMain_left.js +++ b/javascript/CMSMain_left.js @@ -177,7 +177,7 @@ showonlydrafts.prototype = { new Ajax.Request( 'admin/filterSiteTree?Status=Saved&ajax=1', { onSuccess: function( response ) { $('sitetree_ul').innerHTML = response.responseText; - Behaviour.apply(); + Behaviour.apply($('sitetree_ul')); $('SiteTreeIsFiltered').value = 1; $('batchactions').multiselectTransform(); statusMessage(ss.i18n._t('CMSMAIN.FILTEREDTREE'),'good'); @@ -272,7 +272,7 @@ batchActionGlobals = { new Ajax.Request( 'admin/SiteTreeAsUL' + '&ajax=1', { onSuccess: function( response ) { $('sitetree_ul').innerHTML = response.responseText; - Behaviour.apply(); + Behaviour.apply($('sitetree_ul')); $('SiteTreeIsFiltered').value = 0; $('batchactions').multiselectTransform(); statusMessage(ss.i18n._t('CMSMAIN.SUCCESSUNFILTER'),'good'); diff --git a/javascript/LeftAndMain_left.js b/javascript/LeftAndMain_left.js index 3e5a3b0a..dddfa9fd 100755 --- a/javascript/LeftAndMain_left.js +++ b/javascript/LeftAndMain_left.js @@ -482,7 +482,7 @@ SiteTreeFilterForm.prototype = { $('SiteTreeIsFiltered').value = 1; $('SiteTreeSearchButton').className = ''; $('sitetree_ul').innerHTML = response.responseText; - Behaviour.apply(); + Behaviour.apply($('sitetree_ul')); statusMessage('Filtered tree','good'); }, onFailure : function(response) {