alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19530: LJSUP-9249: There is button Vkontakte fo...

Committer: afedorov
LJSUP-9249: There is button Vkontakte for non-Cyr user and for US-ip

U   trunk/htdocs/update.bml
Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2011-07-26 09:12:36 UTC (rev 19529)
+++ trunk/htdocs/update.bml	2011-07-26 09:54:44 UTC (rev 19530)
@@ -656,6 +656,9 @@
     # Turning off BML parsing for the rest of this code block
     # The draft might contain BML like syntax and cause problems
     BML::noparse();
+
+    my $is_sup = LJ::SUP->is_remote_sup() ? 1 : 0;
+
     $ret .= qq^
     <script type="text/javascript">
         // ensure that we're not being displayed in an iframe;
@@ -667,6 +670,7 @@
         var restoredDraft = $draft;
 
         function init_update_bml() {
+            window.isSupUser = $is_sup;
             setTimeout(function(){ $initDraft }, 0)
             $_[0]->{'onload'}
             $pageload

Tags: bml, livejournal, red_alf
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