Index: branches/resourceloader/phase3/resources/test/index.html |
— | — | @@ -10,15 +10,6 @@ |
11 | 11 | font-family: sans-serif; |
12 | 12 | } |
13 | 13 | </style> |
14 | | - <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&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> |
23 | 14 | </head> |
24 | 15 | <body> |
25 | 16 | <h1>Resource Loader Tests</h1> |
— | — | @@ -29,8 +20,17 @@ |
30 | 21 | <strong>Datepicker....</strong> |
31 | 22 | <input type="text" id="datepicker" /> |
32 | 23 | </p> |
| 24 | + <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&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> |
33 | 33 | <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'] ); |
35 | 35 | </script> |
36 | 36 | <script type="text/javascript"> |
37 | 37 | mediaWiki.loader.using( 'test', function() { |
— | — | @@ -40,6 +40,7 @@ |
41 | 41 | $( '#datepicker' ).datepicker(); |
42 | 42 | mediaWiki.log( 'datepicker (dynamic)' ); |
43 | 43 | } ); |
| 44 | + $(document).ready( function() { mediaWiki.log( 'TEST' ); } ); |
44 | 45 | </script> |
45 | 46 | </body> |
46 | 47 | </html> |
\ No newline at end of file |