madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r19818: LJSUP-9307: update.bml: missed preview b...

Committer: sbelyaev
LJSUP-9307: update.bml: missed preview button
U   branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm
Modified: branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm	2011-08-24 02:58:43 UTC (rev 19817)
+++ branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm	2011-08-24 03:31:08 UTC (rev 19818)
@@ -1309,13 +1309,14 @@
             $defaultjournal = $remote->user;
         }
 
+        $out .= qq{ <div id="entryform-update-and-edit"> };
         if ($defaultjournal) {
             $$onload .= " changeSubmit('$BML::ML{'entryform.update3'}', '$defaultjournal', '$BML::ML{'entryform.update4'}');";
             $$onload .= " changeSecurityOptions('$defaultjournal');";
         }
+        $out .= qq{</div>};
 
         my $disabled = $remote && $remote->is_identity && !$self->usejournal;
-        $out .= qq{ <div id="entryform-update-and-edit"> };
 
         $out .= LJ::html_submit(
             'action:update',
@@ -1328,7 +1329,6 @@
                 'disabled' => $disabled,
             }
         ) . "&nbsp;\n";
-        $out .= qq{</div>};
     }
 
     if ($opts->{'mode'} eq "edit") {

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