From e4b2ebdc1e9d0584c8312937291514fda70add5f Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 19 Nov 2008 22:40:36 +0000 Subject: [PATCH] BUGFIX: Made Behaviour.apply calls more specific git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66250 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/CMSMain_left.js | 4 ++-- javascript/LeftAndMain_left.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {