http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70606
Revision: 70606
Author: tparscal
Date: 2010-08-06 23:10:31 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
Moved scripts to the bottom for testing
Modified Paths:
--------------
branches/resourceloader/phase3/resources/test/index.html
Modified: branches/resourceloader/phase3/resources/test/index.html
===================================================================
--- branches/resourceloader/phase3/resources/test/index.html 2010-08-06
22:51:50 UTC (rev 70605)
+++ branches/resourceloader/phase3/resources/test/index.html 2010-08-06
23:10:31 UTC (rev 70606)
@@ -10,15 +10,6 @@
font-family: sans-serif;
}
</style>
- <script type="text/javascript"
src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&lang=ja"></script>
- <script>
- // Mimic what Skin::makeGlobalVariablesScript would
have done
- mediaWiki.config.set( {
- 'skin': 'vector',
- 'wgUserLanguage': 'en',
- 'wgUserName': null
- } );
- </script>
</head>
<body>
<h1>Resource Loader Tests</h1>
@@ -29,8 +20,17 @@
<strong>Datepicker....</strong>
<input type="text" id="datepicker" />
</p>
+ <script type="text/javascript"
src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&lang=ja"></script>
+ <script>
+ // Mimic what Skin::makeGlobalVariablesScript would
have done
+ mediaWiki.config.set( {
+ 'skin': 'vector',
+ 'wgUserLanguage': 'en',
+ 'wgUserName': null
+ } );
+ </script>
<script type="text/javascript" >
- mediaWiki.loader.load( ['test', 'jquery.ui.core',
'jquery.ui.datepicker'] );
+ mediaWiki.loader.load( ['test', 'jquery.ui.core',
'jquery.ui.datepicker', 'mediawiki.legacy.wikibits'] );
</script>
<script type="text/javascript">
mediaWiki.loader.using( 'test', function() {
@@ -40,6 +40,7 @@
$( '#datepicker' ).datepicker();
mediaWiki.log( 'datepicker (dynamic)' );
} );
+ $(document).ready( function() { mediaWiki.log( 'TEST'
); } );
</script>
</body>
</html>
\ No newline at end of file
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs