Index: jquery_update.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_update/jquery_update.install,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 jquery_update.install
--- jquery_update.install	30 May 2008 21:41:14 -0000	1.1.2.2
+++ jquery_update.install	9 Jun 2008 15:11:07 -0000
@@ -29,9 +29,13 @@ function jquery_update_requirements($pha
         );
       }
       elseif ($phase == 'runtime') {
+        $embed_prefix = "\n<!--//--><![CDATA[//><!--\n";
+        $embed_suffix = "\n//--><!]]>\n";
+        $embed = $embed_prefix ."$(document).ready(function() {\n$('strong#jquery_version').empty().prepend($().jquery); \n});". $embed_suffix;
+        drupal_add_js($embed, 'inline');
         $requirements['jquery'] = array(
           'title' => $t('jQuery Update'),
-          'description' => $t('The current installed version of jQuery is !version', array('%core' => 'misc/jquery.js', '%mod' => $path, '!version' => '<strong><script>document.write($().jquery);</script><noscript>javascript not enabled</noscript></strong>')),
+          'description' => $t('The current installed version of jQuery is !version', array('!version' => '<strong id="jquery_version">javascript not enabled</strong>')),
           'severity' => REQUIREMENT_OK,
           'value' => $t('Installed correctly'),
         );
