소스 검색

Déplace chargement fichier main.js

Le chargement de main.js était fait dans indexController. Il est fait
maintenant dans le FrontController pour avoir accès, même hors de la
page principale, aux fonctionnalités de connexion / déconnexion /
fermeture des notifications
Marien Fressinaud 12 년 전
부모
커밋
7de22cdf4c
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      app/App_FrontController.php
  2. 0 1
      app/controllers/indexController.php

+ 1 - 0
app/App_FrontController.php

@@ -65,6 +65,7 @@ class App_FrontController extends FrontController {
 		if ($this->conf->lazyload () === 'yes' && ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader')) {
 			View::appendScript (Url::display ('/scripts/jquery.lazyload.min.js'));
 		}
+		View::appendScript (Url::display ('/scripts/main.js'));
 	}
 
 	private function loadNotifications () {

+ 0 - 1
app/controllers/indexController.php

@@ -17,7 +17,6 @@ class indexController extends ActionController {
 			}
 
 			View::appendScript (Url::display ('/scripts/shortcut.js'));
-			View::appendScript (Url::display ('/scripts/main.js'));
 
 			if ($output == 'global') {
 				View::appendScript (Url::display ('/scripts/global_view.js'));