mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Revert "Switch to listing views of subsite-filtered sections"
This reverts commit 8ba7070b02b4941520a2afc9d4ebde34c6e4d85e.
This commit is contained in:
parent
4049f7a12d
commit
e020766095
@ -7,13 +7,7 @@
|
||||
$('#SubsitesSelect').entwine({
|
||||
onadd:function(){
|
||||
this.on('change', function(){
|
||||
// Switch to listing views of subsite-filtered sections (eg: pages/ & assets/)
|
||||
let newLocHref = window.location.href
|
||||
.split('edit/show/').shift() // remove [pages/]edit/etc
|
||||
.split('settings/show/').shift() // remove [pages/]settings/etc
|
||||
.split('history/show/').shift() // remove [pages/]history/etc
|
||||
.split('show/').shift(); // remove [assets/]show/102/edit/etc (last as 'show' is broad)
|
||||
window.location.href = newLocHref + $.query.set('SubsiteID', $(this).val()).toString();
|
||||
window.location.search=$.query.set('SubsiteID', $(this).val());
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user