Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php |
— | — | @@ -387,8 +387,7 @@ |
388 | 388 | global $smwgQSortingSupport, $wgRequest, $wgOut; |
389 | 389 | |
390 | 390 | if ( !$smwgQSortingSupport ) return ''; |
391 | | - $this->enableJQueryUI(); |
392 | | - |
| 391 | + $this->enableJQuery(); |
393 | 392 | $result = ''; |
394 | 393 | $num_sort_values = 0; |
395 | 394 | // START: create form elements already submitted earlier via form |
— | — | @@ -501,8 +500,8 @@ |
502 | 501 | <script type="text/javascript"> |
503 | 502 | // code for handling adding and removing the "sort" inputs |
504 | 503 | |
505 | | - jQuery(function(){ |
506 | | - jQuery('$hidden').appendTo(document.body); |
| 504 | +jQuery(function(){ |
| 505 | + jQuery('$hidden').appendTo(document.body); |
507 | 506 | }); |
508 | 507 | var num_elements = {$num_sort_values}; |
509 | 508 | |
— | — | @@ -522,7 +521,7 @@ |
523 | 522 | for (x = 0; x < children.length; x++) { |
524 | 523 | if (children[x].name) |
525 | 524 | children[x].name = children[x].name.replace(/_num/, '[' + num_elements + ']'); |
526 | | - } |
| 525 | + } |
527 | 526 | |
528 | 527 | //Create 'delete' link |
529 | 528 | var remove_button = document.createElement('span'); |