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

[livejournal] r21635: LJSUP-11421: Cliend-side development for...

Committer: amyshkin
LJSUP-11421: Cliend-side development for Trava.ru
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-04 12:33:17 UTC (rev 21634)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-04 13:16:19 UTC (rev 21635)
@@ -1357,10 +1357,18 @@
     }
 
     $out .= "</ul>";
-    $out .= $self->wrap_js(q~
-        jQuery('#entryform-music-wrapper').trava().trava('getNowListen');
-    ~) if $self->should_show_trava;
 
+    if ( $opts->{'mode'} eq "edit" ) {
+        $out .= $self->wrap_js(q~
+            jQuery('#entryform-music-wrapper').trava();
+        ~) if $self->should_show_trava;
+    }
+    else {
+        $out .= $self->wrap_js(q~
+            jQuery('#entryform-music-wrapper').trava().trava('getNowListen');
+        ~) if $self->should_show_trava;
+    }
+
     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