MINOR fixed SiteTree search in admin

APICHANGE added onAfterSave in LeftAndMain

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@84570 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Tom Rix 2009-08-17 22:31:16 +00:00
parent a16ae60d59
commit 2367de0758
2 changed files with 3 additions and 1 deletions

View File

@ -721,6 +721,8 @@ JS;
$newVersion = ((int)$record->Version) + 1;
FormResponse::add("\$('Form_EditForm_Version').value = {$newVersion};");
$this->extend('onAfterSave', $record);
// If the 'Save & Publish' button was clicked, also publish the page
if (isset($urlParams['publish']) && $urlParams['publish'] == 1) {
$record->doPublish();

View File

@ -190,7 +190,7 @@ SiteTreeFilterForm.prototype = {
if (filters.keys().length) {
// Set new URL
$('sitetree').setCustomURL(SiteTreeHandlers.controller_url + '/getfilteredsubtree', filters);
$('sitetree').setCustomURL(SiteTreeHandlers.controller_url + '/getfilteredsubtree?filter=CMSSiteTreeFilter_Search', filters);
// Disable checkbox tree controls that currently don't work with search.
// @todo: Make them work together