Index: trunk/extensions/Wikidata/Wikidata.hooks.php |
— | — | @@ -13,8 +13,12 @@ |
14 | 14 | |
15 | 15 | if ( $wgRequest->getText( 'action' )=='edit' ) { |
16 | 16 | $out->addModules( 'ext.Wikidata.edit' ); |
| 17 | + $out->addModules( 'ext.Wikidata.suggest' ); |
17 | 18 | } |
18 | 19 | |
| 20 | + if ( $skin->getTitle()->isSpecialPage() ) { |
| 21 | + $out->addModules( 'ext.Wikidata.suggest' ); |
| 22 | + } |
19 | 23 | return true; |
20 | 24 | } |
21 | 25 | |
Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -52,8 +52,11 @@ |
53 | 53 | ); |
54 | 54 | |
55 | 55 | $wgResourceModules['ext.Wikidata.edit'] = $resourcePathArray + array( |
56 | | - 'scripts' => array( 'OmegaWiki/resources/suggest.js', 'OmegaWiki/resources/omegawiki-edit.js' ) |
| 56 | + 'scripts' => 'OmegaWiki/resources/omegawiki-edit.js' |
57 | 57 | ); |
| 58 | +$wgResourceModules['ext.Wikidata.suggest'] = $resourcePathArray + array( |
| 59 | + 'scripts' => 'OmegaWiki/resources/suggest.js' |
| 60 | +); |
58 | 61 | |
59 | 62 | |
60 | 63 | $wgAutoloadClasses['WikidataHooks'] = $dir . 'Wikidata.hooks.php'; |