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

[livejournal] r21406: LJSUP-11352: Partnership with Trava.ru

Committer: amyshkin
LJSUP-11352: Partnership with 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-14 07:28:06 UTC (rev 21405)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-03-14 08:00:57 UTC (rev 21406)
@@ -1169,6 +1169,10 @@
                         style="float: left"
                         onclick="trava_search('$trava_uid', true);"
                     >
+                    <input
+                        type="hidden"
+                        id="trava_track_id"
+                    >
                     $help_icon
                 };
 
@@ -1270,17 +1274,22 @@
           return '';
         },
         'lastfm_logo' => sub {
-            return unless $self->should_show_lastfm;
-            return qq{
-                <span class='lastfm'>
-                    <span>
-                        POWERED<br />
-                        BY
+            if ( $self->should_show_trava ) {
+                return "POWERED BY TRAVA.ru";
+            }
+            elsif ( $self->should_show_lastfm ) {
+                return qq{
+                    <span class='lastfm'>
+                        <span>
+                            POWERED<br />
+                            BY
+                        </span>
                     </span>
-                </span>
-                <a href='$LJ::LAST_FM_SITE_URL' target='_blank'
-                    class='lastfm_lnk'>Last.fm</a>
+                    <a href='$LJ::LAST_FM_SITE_URL' target='_blank'
+                        class='lastfm_lnk'>Last.fm</a>
+                };
             };
+            return '';
         },
         'spellcheck' => sub {
             my $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