Revert "Switch to listing views of subsite-filtered sections"

This reverts commit 8ba7070b02.
This commit is contained in:
Steve Boyd 2023-09-06 17:26:00 +12:00
parent 4049f7a12d
commit e020766095
1 changed files with 1 additions and 7 deletions

View File

@ -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());
});
}
});