Index: popups.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/popups/popups.js,v
retrieving revision 1.9.8.19
diff -u -p -r1.9.8.19 popups.js
--- popups.js	10 Dec 2010 02:51:17 -0000	1.9.8.19
+++ popups.js	10 Dec 2010 16:12:36 -0000
@@ -793,9 +793,9 @@ Popups.addInlineJS = function(inlines) {
   // Load the inlines into the page.
   for (var n in inlines) {
     // If the script is not already in the page, execute it.
-    //if (!$('script:not([src]):contains(' + inlines[n] + ')').length) {
+    if (!$("script:not([src*='" + inlines[n] + "'])").length) {
       eval(inlines[n]);
-    //}
+    }
   }
 };
 
@@ -813,7 +813,7 @@ Popups.beforeSubmit = function(formData,
 
 
 /****************************************************************************
- * Page & Form in popups functions                                         ***
+ * Page & Form in popups functions                                          *
  ****************************************************************************/
 
 /**
Index: popups.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/popups/popups.module,v
retrieving revision 1.11.8.13
diff -u -p -r1.11.8.13 popups.module
--- popups.module	10 Dec 2010 02:51:17 -0000	1.11.8.13
+++ popups.module	10 Dec 2010 16:12:37 -0000
@@ -132,6 +132,10 @@ function popups_form_alter(&$form, $form
  * @return $content in a json wrapper with metadata.
  */
 function popups_render_as_json($content) {
+  // Call theme_page so modules like jquery_update can do their thing. We don't
+  // really care about the mark up though.
+  $ignore = theme('page', $content);
+
   $path = $_GET['q']; // Get current path from params.
   return drupal_json(array(
     'title' => drupal_get_title(),
