diff options
| author | 2013-11-17 16:20:09 +0100 | |
|---|---|---|
| committer | 2013-11-17 16:20:09 +0100 | |
| commit | 0167d550c83a614df540427ae270f4cb460034ac (patch) | |
| tree | 588c44c13f5b067d9a385049a19f1254528f1041 /app/App_FrontController.php | |
| parent | 40a0829483e4ec15e5af2b5f539a7ff249ffbd06 (diff) | |
Corrige bug chargement lazyload en mode déplié
En désactivant le chargement asynchrone de JQuery uniquement dans ce
cas.
Corrige https://github.com/marienfressinaud/FreshRSS/issues/276
Diffstat (limited to 'app/App_FrontController.php')
| -rw-r--r-- | app/App_FrontController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/App_FrontController.php b/app/App_FrontController.php index b175442d6..3a980349a 100644 --- a/app/App_FrontController.php +++ b/app/App_FrontController.php @@ -63,9 +63,9 @@ class App_FrontController extends FrontController { if (login_is_conf ($this->conf)) { View::appendScript ('https://login.persona.org/include.js'); } - View::appendScript (Url::display ('/scripts/jquery.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.min.js'))); - if ($this->conf->lazyload () === 'yes' && - ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader')) { + $includeLazyLoad = $this->conf->lazyload () === 'yes' && ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader'); + View::appendScript (Url::display ('/scripts/jquery.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.min.js')), false, !$includeLazyLoad, !$includeLazyLoad); + if ($includeLazyLoad) { View::appendScript (Url::display ('/scripts/jquery.lazyload.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.lazyload.min.js'))); } View::appendScript (Url::display ('/scripts/main.js?' . @filemtime(PUBLIC_PATH . '/scripts/main.js'))); |
