mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
a16ae60d59
commit
2367de0758
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user