r70606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70605‎ | r70606 | r70607 >
Date:23:10, 6 August 2010
Author:tparscal
Status:ok
Tags:
Comment:
Moved scripts to the bottom for testing
Modified paths:
  • /branches/resourceloader/phase3/resources/test/index.html (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/resources/test/index.html
@@ -10,15 +10,6 @@
1111 font-family: sans-serif;
1212 }
1313 </style>
14 - <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&amp;debug=true&amp;skin=vector&amp;lang=ja"></script>
15 - <script>
16 - // Mimic what Skin::makeGlobalVariablesScript would have done
17 - mediaWiki.config.set( {
18 - 'skin': 'vector',
19 - 'wgUserLanguage': 'en',
20 - 'wgUserName': null
21 - } );
22 - </script>
2314 </head>
2415 <body>
2516 <h1>Resource Loader Tests</h1>
@@ -29,8 +20,17 @@
3021 <strong>Datepicker....</strong>
3122 <input type="text" id="datepicker" />
3223 </p>
 24+ <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&amp;debug=true&amp;skin=vector&amp;lang=ja"></script>
 25+ <script>
 26+ // Mimic what Skin::makeGlobalVariablesScript would have done
 27+ mediaWiki.config.set( {
 28+ 'skin': 'vector',
 29+ 'wgUserLanguage': 'en',
 30+ 'wgUserName': null
 31+ } );
 32+ </script>
3333 <script type="text/javascript" >
34 - mediaWiki.loader.load( ['test', 'jquery.ui.core', 'jquery.ui.datepicker'] );
 34+ mediaWiki.loader.load( ['test', 'jquery.ui.core', 'jquery.ui.datepicker', 'mediawiki.legacy.wikibits'] );
3535 </script>
3636 <script type="text/javascript">
3737 mediaWiki.loader.using( 'test', function() {
@@ -40,6 +40,7 @@
4141 $( '#datepicker' ).datepicker();
4242 mediaWiki.log( 'datepicker (dynamic)' );
4343 } );
 44+ $(document).ready( function() { mediaWiki.log( 'TEST' ); } );
4445 </script>
4546 </body>
4647 </html>
\ No newline at end of file

Status & tagging log