r93875 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93874‎ | r93875 | r93876 >
Date:09:04, 4 August 2011
Author:devayon
Status:deferred
Tags:
Comment:
minor cleapup
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
@@ -387,8 +387,7 @@
388388 global $smwgQSortingSupport, $wgRequest, $wgOut;
389389
390390 if ( !$smwgQSortingSupport ) return '';
391 - $this->enableJQueryUI();
392 -
 391+ $this->enableJQuery();
393392 $result = '';
394393 $num_sort_values = 0;
395394 // START: create form elements already submitted earlier via form
@@ -501,8 +500,8 @@
502501 <script type="text/javascript">
503502 // code for handling adding and removing the "sort" inputs
504503
505 - jQuery(function(){
506 - jQuery('$hidden').appendTo(document.body);
 504+jQuery(function(){
 505+ jQuery('$hidden').appendTo(document.body);
507506 });
508507 var num_elements = {$num_sort_values};
509508
@@ -522,7 +521,7 @@
523522 for (x = 0; x < children.length; x++) {
524523 if (children[x].name)
525524 children[x].name = children[x].name.replace(/_num/, '[' + num_elements + ']');
526 - }
 525+ }
527526
528527 //Create 'delete' link
529528 var remove_button = document.createElement('span');