can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r22123: LJSV-2251: Update.bml isn't loading in I...

Committer: dpetrov
LJSV-2251: Update.bml isn't loading in IE 8.0. Load trava only on domcontentloaded event
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-05-30 15:27:44 UTC (rev 22122)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-05-31 07:30:46 UTC (rev 22123)
@@ -1356,9 +1356,9 @@
     $out .= "</ul>";
 
     if ( $self->should_show_trava ) {
-        $out .= '<script type="text/javascript">';
+        $out .= '<script type="text/javascript">LiveJournal.register_hook(\'page_load\', function() { ';
         $out .= q~jQuery('#entryform-music-wrapper').trava()~ . ( $opts->{'mode'} eq "edit" ? ';' : q~.trava('getNowListen');~ );
-        $out .= '</script>';
+        $out .= ' }); </script>';
     }
 
     return $out;

Tags: can3p, dpetrov, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments