diff options
| author | 2013-11-17 16:20:09 +0100 | |
|---|---|---|
| committer | 2013-11-17 16:20:53 +0100 | |
| commit | b160a731fea1077c85aea7d0f51673644fb04c70 (patch) | |
| tree | 4ec7f85f63756949498ae4d6ae16c19fec8a6906 | |
| parent | 0bd6ea1c08c08f653f1c88d349d31fbdcfce1d7f (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
| -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 483bae567..a8415169c 100644 --- a/app/App_FrontController.php +++ b/app/App_FrontController.php @@ -67,9 +67,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'))); |
