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
This commit is contained in:
Sam Minnee 2008-11-19 22:40:36 +00:00
parent ea97094891
commit e4b2ebdc1e
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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) {