? 696402-context-node-form.patch
? 713526-panels-stacked-tpl-conditions.patch
? 718368-ignore-query-string.patch
? 827310-hide-disabled-comments.patch
? 853368-field-override-broken.patch
? TODO.txt
? auto-guess-type-ajax-element.patch
? comment_links_8.patch
? ctools-853114-docs.patch
? ctools-862320.patch
? ctools-ajax-redirect-with-delayed-optional-check-for-positive-delay.patch
? ctools-custom_content.patch
? ctools-no-base-types-1.patch
? ctools-object-cache.inc-session-handling_0.patch
? ctools_ahah_callback_rebuilds_831922.patch
? ctools_node_build_modes_views_style_0.patch
? help/stylizer.html
Index: js/ajax-responder.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ctools/js/ajax-responder.js,v
retrieving revision 1.18.2.18
diff -u -p -r1.18.2.18 ajax-responder.js
--- js/ajax-responder.js	22 Jul 2010 21:18:03 -0000	1.18.2.18
+++ js/ajax-responder.js	2 Aug 2010 18:18:27 -0000
@@ -386,14 +386,28 @@
     // Build a list of scripts already loaded:
     var scripts = {};
     $('script').each(function () {
-      Drupal.CTools.AJAX.scripts[$(this).attr('src')] = $(this).attr('src');
+      var link = $(this).attr('src');
+      if (link) {
+        var index = link.indexOf('?');
+        if (index) {
+          link = link.substr(0, index);
+        }
+        Drupal.CTools.AJAX.scripts[link] = $(this).attr('src');
+      }
+
     });
 
     var html = '';
     var head = document.getElementsByTagName('head')[0];
     for (i in data.argument) {
-      if (!Drupal.CTools.AJAX.scripts[data.argument[i]]) {
-        Drupal.CTools.AJAX.scripts[data.argument[i]] = data.argument[i];
+      var link = data.argument[i];
+      var index = link.indexOf('?');
+      if (index) {
+        link = link.substr(0, index);
+      }
+
+      if (!Drupal.CTools.AJAX.scripts[link]) {
+        Drupal.CTools.AJAX.scripts[data.argument[i]] = link;
         // Use this to actually get the script tag into the dom, which is
         // needed for scripts that self-reference to determine paths.
         var script = document.createElement('script');
