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

[livejournal] r21507: 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-03-22 09:39:23 UTC (rev 21506)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-03-22 10:52:09 UTC (rev 21507)
@@ -113,7 +113,6 @@
 
 sub should_show_trava {
     my ($self) = @_;
-
     return 0 unless LJ::Setting::Music::Trava->good_ip;
     return $self->opts->{'prop_trava_user'} > 1 ? 1 : 0;
 }
@@ -701,9 +700,6 @@
     $out .= $self->render_userpics_block;
     $out .= $self->render_infobox_block;
     $out .= $self->render_metainfo_block;
-    $out .= $self->wrap_js(q~
-        jQuery('#entryform-music-wrapper').trava().trava('getNowListen');
-    ~) if $self->should_show_trava;
 
     return $out;
 }
@@ -1364,6 +1360,9 @@
     }
 
     $out .= "</ul>";
+    $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