Permalink
Browse files

rem broken and obsolete bc stuffs

Change-Id: I2b8b01d5f4238fd8794eda9027e1e8be20a0a192
  • Loading branch information...
1 parent bed5dc1 commit 5f0a90cdf801c655c540c2124a0985ec362f3c59 @JeroenDeDauw committed May 9, 2012
Showing with 2 additions and 16 deletions.
  1. +2 −16 specials/AskSpecial/SMW_SpecialAsk.php
@@ -171,23 +171,9 @@ protected function extractQueryParameters( $p ) {
* @since 1.5.2
*/
protected static function addAutocompletionJavascriptAndCSS() {
- global $wgOut, $smwgJQueryIncluded, $smwgJQueryUIIncluded;
+ global $wgOut;
- $scripts = array();
-
- if ( !$smwgJQueryIncluded ) {
- $wgOut->addScript( 'jquery' );
- $smwgJQueryIncluded = true;
- }
-
- if ( !$smwgJQueryUIIncluded ) {
- $wgOut->addModules( array( 'jquery.ui.widget', 'jquery.ui.position', 'jquery.ui.autocomplete' ) );
- $smwgJQueryUIIncluded = true;
- }
-
- foreach ( $scripts as $js ) {
- $wgOut->addScriptFile( $js );
- }
+ $wgOut->addModules( array( 'jquery.ui.widget', 'jquery.ui.position', 'jquery.ui.autocomplete' ) );
$javascript_autocomplete_text = <<<END
<script type="text/javascript">

0 comments on commit 5f0a90c

Please sign in to comment.