mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Update the filtered tree styling
This commit is contained in:
parent
ab59113612
commit
4f05c4c4f8
@ -158,6 +158,19 @@
|
|||||||
window.location = location.protocol + '//' + location.host + location.pathname;
|
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));
|
}(jQuery));
|
||||||
|
@ -94,7 +94,7 @@ en:
|
|||||||
DUPLICATEDWITHCHILDREN: 'Duplicated ''{title}'' and children successfully'
|
DUPLICATEDWITHCHILDREN: 'Duplicated ''{title}'' and children successfully'
|
||||||
EMAIL: Email
|
EMAIL: Email
|
||||||
EditTree: 'Edit Tree'
|
EditTree: 'Edit Tree'
|
||||||
ListFiltered: 'Filtered list.'
|
ListFiltered: 'Showing search results.'
|
||||||
MENUTITLE: 'Edit Page'
|
MENUTITLE: 'Edit Page'
|
||||||
NEWPAGE: 'New {pagetype}'
|
NEWPAGE: 'New {pagetype}'
|
||||||
PAGENOTEXISTS: 'This page doesn''t exist'
|
PAGENOTEXISTS: 'This page doesn''t exist'
|
||||||
@ -122,7 +122,7 @@ en:
|
|||||||
TabContent: Content
|
TabContent: Content
|
||||||
TabHistory: History
|
TabHistory: History
|
||||||
TabSettings: Settings
|
TabSettings: Settings
|
||||||
TreeFiltered: 'Search results.'
|
TreeFiltered: 'Showing search results.'
|
||||||
TreeFilteredClear: Clear
|
TreeFilteredClear: Clear
|
||||||
MENUTITLE: 'Edit Page'
|
MENUTITLE: 'Edit Page'
|
||||||
ARCHIVE: Archive
|
ARCHIVE: Archive
|
||||||
|
@ -6,15 +6,20 @@
|
|||||||
|
|
||||||
<div class="cms-panel-content center">
|
<div class="cms-panel-content center">
|
||||||
<% if $TreeIsFiltered %>
|
<% if $TreeIsFiltered %>
|
||||||
<div class="cms-tree-filtered cms-notice">
|
<div class="cms-notice cms-tree-filtered">
|
||||||
<strong><% _t('CMSMain.ListFiltered', 'Filtered list.') %></strong>
|
<strong><% _t('CMSMain.ListFiltered', 'Showing search results.') %></strong>
|
||||||
<a href="$LinkPages" class="cms-panel-link">
|
<a href="$LinkPages" class="cms-panel-link">
|
||||||
<% _t('CMSMain.TreeFilteredClear', 'Clear') %>
|
<% _t('CMSMain.TreeFilteredClear', 'Clear') %>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="cms-list" data-url-list="$Link(getListViewHTML)">
|
||||||
|
$ListViewForm
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% else %>
|
||||||
|
|
||||||
<div class="cms-list" data-url-list="$Link(getListViewHTML)">
|
<div class="cms-list" data-url-list="$Link(getListViewHTML)">
|
||||||
$ListViewForm
|
$ListViewForm
|
||||||
</div>
|
</div>
|
||||||
|
<% end_if %>
|
||||||
</div>
|
</div>
|
@ -9,12 +9,28 @@ $ExtraTreeTools
|
|||||||
<div class="center">
|
<div class="center">
|
||||||
<% if $TreeIsFiltered %>
|
<% if $TreeIsFiltered %>
|
||||||
<div class="cms-tree-filtered cms-notice">
|
<div class="cms-tree-filtered cms-notice">
|
||||||
<strong><% _t('CMSMain.TreeFiltered', 'Search results.') %></strong>
|
<strong><% _t('CMSMain.TreeFiltered', 'Showing search results.') %></strong>
|
||||||
<a href="javascript:void(0)" class="clear-filter">
|
<a href="javascript:void(0)" class="clear-filter">
|
||||||
<% _t('CMSMain.TreeFilteredClear', 'Clear') %>
|
<% _t('CMSMain.TreeFilteredClear', 'Clear') %>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="cms-tree <% if $TreeIsFiltered %>filtered-list<% end_if %>"
|
||||||
|
data-url-tree="$LinkWithSearch($Link(getsubtree))"
|
||||||
|
data-url-savetreenode="$Link(savetreenode)"
|
||||||
|
data-url-updatetreenodes="$Link(updatetreenodes)"
|
||||||
|
data-url-addpage="{$LinkPageAdd('AddForm/?action_doAdd=1', 'ParentID=%s&PageType=%s')}"
|
||||||
|
data-url-editpage="$LinkPageEdit('%s')"
|
||||||
|
data-url-duplicate="{$Link('duplicate/%s')}"
|
||||||
|
data-url-duplicatewithchildren="{$Link('duplicatewithchildren/%s')}"
|
||||||
|
data-url-listview="{$Link('?view=list')}"
|
||||||
|
data-hints="$SiteTreeHints.XML"
|
||||||
|
data-childfilter="$Link('childfilter')"
|
||||||
|
data-extra-params="SecurityID=$SecurityID">
|
||||||
|
$SiteTreeAsUL
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
|
||||||
|
<% else %>
|
||||||
|
|
||||||
<div class="cms-tree <% if $TreeIsFiltered %>filtered-list<% end_if %>"
|
<div class="cms-tree <% if $TreeIsFiltered %>filtered-list<% end_if %>"
|
||||||
data-url-tree="$LinkWithSearch($Link(getsubtree))"
|
data-url-tree="$LinkWithSearch($Link(getsubtree))"
|
||||||
@ -30,4 +46,6 @@ $ExtraTreeTools
|
|||||||
data-extra-params="SecurityID=$SecurityID">
|
data-extra-params="SecurityID=$SecurityID">
|
||||||
$SiteTreeAsUL
|
$SiteTreeAsUL
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user