Index: views.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/hierarchical_select/includes/views.js,v retrieving revision 1.4 diff -u -p -r1.4 views.js --- views.js 6 Jul 2008 09:11:19 -0000 1.4 +++ views.js 21 Jul 2008 23:02:43 -0000 @@ -7,30 +7,7 @@ */ if (Drupal.jsEnabled) { - $(document).ready(function(){ - var td; - var cols; - var i = 0;; - $("form#views-filters table td:has(.hierarchical-select-wrapper)").each(function() { - i++; - td = $(this); - cols = td.siblings().length; - - // Add another row to the table. - $("form#views-filters > div > table > tbody") - .append(''); - - // Update colspan of the td in which our modified exposed filter exists. - td.attr("colspan", cols); - - // Move all filters except our modified one to the newly added row. - td.siblings() - .appendTo("#hs-new-row-"+ i); - - // Reduce the number of headers to the number of columns we have left. - $("form#views-filters div table thead tr th").slice(cols).remove(); - }); - + $(document).ready(function() { $('form#views-filters').submit(function() { // Remove the Hierarchical Select form build id and the form id, to // prevent them from ending up in the GET URL. @@ -41,4 +18,4 @@ if (Drupal.jsEnabled) { $('form#views-filters .hierarchical-select-wrapper').trigger('prepare-GET-submit'); }); }); -} +} \ No newline at end of file