Index: popups.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/popups/popups.js,v
retrieving revision 1.9.8.12
diff -u -p -r1.9.8.12 popups.js
--- popups.js	21 Mar 2009 00:57:15 -0000	1.9.8.12
+++ popups.js	6 Apr 2009 18:55:21 -0000
@@ -742,7 +742,7 @@ Popups.addJS = function(js) {
   for (var type in js) {
     if (type != 'setting') {
       for (var file in js[type]) {
-        if (type == 'inline') {
+        if (type == 'core' || type == 'module') {
           inlines.push($(js[type][file]).text());
         }
         else {
@@ -789,7 +789,7 @@ 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]);
     }
   }
