Index: img_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v
retrieving revision 1.107
diff -u -p -r1.107 img_assist.module
--- img_assist.module	13 Aug 2009 19:32:44 -0000	1.107
+++ img_assist.module	9 Jan 2011 07:01:18 -0000
@@ -302,9 +302,14 @@ function img_assist_loader() {
   $output .= "<head>\n";
   $output .= '<title>'. t('Add image') ."</title>\n";
   $output .= drupal_get_js();
+  $output .= '<script type="text/javascript">
+$(document).ready(function () {
+  initLoader();
+});
+</script>';
   $output .= "</head>\n\n";
-  
-  $output .= '<frameset rows="38, *" onload="initLoader()" frameborder="0" border="0" framespacing="0">' . "\n";
+
+  $output .= '<frameset rows="38, *" frameborder="0" border="0" framespacing="0">' . "\n";
   $output .= '<frame name="img_assist_header" src="" class="img_assist_header" noresize="noresize" />' . "\n";
   $output .= '<frame name="img_assist_main" src="" class="img_assist_main" noresize="noresize" />' . "\n";
   $output .= "</frameset>\n";
