diff --git a/javascript/CMSMain.Tree.js b/javascript/CMSMain.Tree.js index 3819f81d..2f4d7f3e 100644 --- a/javascript/CMSMain.Tree.js +++ b/javascript/CMSMain.Tree.js @@ -158,6 +158,19 @@ window.location = location.protocol + '//' + location.host + location.pathname; } }); + + $('.cms-tree-filtered').entwine({ + onmatch: function () { + var self = this, + setHeight = function () { + var height = $('.cms-content-tools .cms-panel-content').height() - self.parent().siblings('.cms-content-toolbar').outerHeight(true); + self.css('height', height + 'px'); + }; + + setHeight(); + $(window).on('resize', window.ss.debounce(setHeight, 300)); + } + }); }); }(jQuery)); diff --git a/lang/en.yml b/lang/en.yml index ee481b82..d6ccec88 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -94,7 +94,7 @@ en: DUPLICATEDWITHCHILDREN: 'Duplicated ''{title}'' and children successfully' EMAIL: Email EditTree: 'Edit Tree' - ListFiltered: 'Filtered list.' + ListFiltered: 'Showing search results.' MENUTITLE: 'Edit Page' NEWPAGE: 'New {pagetype}' PAGENOTEXISTS: 'This page doesn''t exist' @@ -122,7 +122,7 @@ en: TabContent: Content TabHistory: History TabSettings: Settings - TreeFiltered: 'Search results.' + TreeFiltered: 'Showing search results.' TreeFilteredClear: Clear MENUTITLE: 'Edit Page' ARCHIVE: Archive diff --git a/templates/Includes/CMSMain_ListView.ss b/templates/Includes/CMSMain_ListView.ss index ae0aa641..85f5eacc 100644 --- a/templates/Includes/CMSMain_ListView.ss +++ b/templates/Includes/CMSMain_ListView.ss @@ -6,15 +6,20 @@
<% if $TreeIsFiltered %> -
- <% _t('CMSMain.ListFiltered', 'Filtered list.') %> +
+ <% _t('CMSMain.ListFiltered', 'Showing search results.') %> <% _t('CMSMain.TreeFilteredClear', 'Clear') %> + +
+ $ListViewForm +
- <% end_if %> + <% else %>
$ListViewForm
+ <% end_if %>
\ No newline at end of file diff --git a/templates/Includes/CMSMain_TreeView.ss b/templates/Includes/CMSMain_TreeView.ss index a7daa2e9..00d93543 100644 --- a/templates/Includes/CMSMain_TreeView.ss +++ b/templates/Includes/CMSMain_TreeView.ss @@ -9,12 +9,28 @@ $ExtraTreeTools
<% if $TreeIsFiltered %>
- <% _t('CMSMain.TreeFiltered', 'Search results.') %> + <% _t('CMSMain.TreeFiltered', 'Showing search results.') %> <% _t('CMSMain.TreeFilteredClear', 'Clear') %> + +
+ $SiteTreeAsUL +
- <% end_if %> + + <% else %>
$SiteTreeAsUL
+ + <% end_if %>