Browse Source

move fader.js to the loader function

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
77e190a711
2 changed files with 2 additions and 1 deletions
  1. 2 0
      Sources/BoardIndex.php
  2. 0 1
      Themes/default/BoardIndex.template.php

+ 2 - 0
Sources/BoardIndex.php

@@ -130,6 +130,8 @@ function BoardIndex()
 
 	// Allow mods to add additional buttons here
 	call_integration_hook('integrate_mark_read_button');
+
+	loadJavascriptFile('fader.js', array('default_theme' => true, 'defer' => true), 'smf_scripts');
 }
 
 /**

+ 0 - 1
Themes/default/BoardIndex.template.php

@@ -38,7 +38,6 @@ function template_newsfader()
 					</ul>
 				</div>
 			</div>
-			<script src="', $settings['default_theme_url'], '/scripts/fader.js"></script>
 			<script><!-- // --><![CDATA[
 				// Create a news fader object.
 				var oNewsFader = new smc_NewsFader({