Procházet zdrojové kódy

move fader.js to the loader function

Signed-off-by: Suki <[email protected]>
Suki před 10 roky
rodič
revize
77e190a711

+ 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({