Difference between revisions of "MediaWiki:Common.js"

From Multi Theft Auto: Wiki
Line 1: Line 1:
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js");
+
$.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js" ).done(function() {
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js");
+
    $.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js" ).done(function() {
mw.hook( 'resourceloader.loadEnd' ).add( function(){
+
$.getScript( "/extensions/_MTAThemeExtensions/mtahighlight.js" ).done(function() {
    mw.loader.load("/extensions/_MTAThemeExtensions/mtahighlight.js");
+
 +
});
 +
});
 
});
 
});

Revision as of 23:05, 9 October 2016

$.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js" ).done(function() {
    $.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js" ).done(function() {
		$.getScript( "/extensions/_MTAThemeExtensions/mtahighlight.js" ).done(function() {
			
		});
	});
});