mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Minor fixtures
This commit is contained in:
parent
7cb3a2dbeb
commit
25309db2b3
@ -11,7 +11,7 @@ window.addEventListener('prefetch-loaded', () => {
|
|||||||
const MainContentContainer = document.getElementById('MainContent')
|
const MainContentContainer = document.getElementById('MainContent')
|
||||||
|
|
||||||
const MainContent = document.createElement('div')
|
const MainContent = document.createElement('div')
|
||||||
if (!MainContentContainer.dataset['legacy']) {
|
if (!MainContentContainer.dataset.legacy) {
|
||||||
MainContent.classList.add('page--container')
|
MainContent.classList.add('page--container')
|
||||||
MainContentContainer.append(MainContent)
|
MainContentContainer.append(MainContent)
|
||||||
|
|
||||||
@ -30,5 +30,12 @@ window.addEventListener('prefetch-loaded', () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll('a.legacy').forEach((el) => {
|
||||||
|
el.addEventListener('click', (e) => {
|
||||||
|
window.location = e.currentTarget.getAttribute('href')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
window.initAjaxOnce = true
|
window.initAjaxOnce = true
|
||||||
})
|
})
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
// extends global PageController class
|
// extends global PageController class
|
||||||
//namespace App\Pages;
|
//namespace App\Pages;
|
||||||
|
|
||||||
|
use A2nt\CMSNiceties\Ajax\Ex\AjaxControllerEx;
|
||||||
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||||
use A2nt\CMSNiceties\Ajax\Ex\AjaxControllerEx;
|
use A2nt\CMSNiceties\Ajax\Ex\AjaxControllerEx;
|
||||||
use SilverStripe\CMS\Controllers\ContentController;
|
use SilverStripe\CMS\Controllers\ContentController;
|
||||||
@ -12,6 +13,7 @@ use SilverStripe\Control\Controller;
|
|||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\View\SSViewer;
|
use SilverStripe\View\SSViewer;
|
||||||
use A2nt\CMSNiceties\Templates\DeferredRequirements;
|
use A2nt\CMSNiceties\Templates\DeferredRequirements;
|
||||||
|
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class \PageController
|
* Class \PageController
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
.breadcrumb{list-style:none}
|
.breadcrumb{list-style:none}
|
||||||
.breadcrumb-item{display:inline-block}
|
.breadcrumb-item{display:inline-block}
|
||||||
.d-none{display:none!important}
|
.d-none{display:none!important}
|
||||||
|
.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;width:1px!important;clip:rect(0,0,0,0)!important;border:0!important;white-space:nowrap!important}
|
||||||
<%-- always show scroll bar --%>
|
<%-- always show scroll bar --%>
|
||||||
html {overflow-y:scroll}
|
html {overflow-y:scroll}
|
||||||
.meta-MetaWindow-overlay{display:none}
|
.meta-MetaWindow-overlay{display:none}
|
||||||
|
Loading…
Reference in New Issue
Block a user