Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r21703: LJSUP-11809: js error: jQuery("#entryfor...

Committer: amyshkin
LJSUP-11809: js error: jQuery("#entryform-music-wrapper").trava is not a function
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-12 08:46:02 UTC (rev 21702)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-12 11:28:16 UTC (rev 21703)
@@ -1356,10 +1356,13 @@
     }
 
     $out .= "</ul>";
-    $out .= '<script type="text/javascript">';
-    $out .= q~jQuery('#entryform-music-wrapper').trava()~ . ( $opts->{'mode'} eq "edit" ? ';' : q~.trava('getNowListen');~ );
-    $out .= '</script>';
 
+    if ( $self->should_show_trava ) {
+        $out .= '<script type="text/javascript">';
+        $out .= q~jQuery('#entryform-music-wrapper').trava()~ . ( $opts->{'mode'} eq "edit" ? ';' : q~.trava('getNowListen');~ );
+        $out .= '</script>';
+    }
+
     return $out;
 }
 

Tags: amyshkin, livejournal, pm, zilogic
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