Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20623: LJSUP-10471: Moving buttons: Post / Prev...

Committer: mchervonniy
LJSUP-10471: Moving buttons: Post / Preview / Delete
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-11-25 08:21:07 UTC (rev 20622)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-11-25 08:54:22 UTC (rev 20623)
@@ -1376,17 +1376,19 @@
     $out .= "<div id='submitbar' class='pkg'>\n\n";
     $out .= "<div id='security_container'>\n";
 
-    $out .= LJ::html_submit(
-        'action:delete',
-        BML::ml('entryform.delete'),
-        {
-            'disabled' => $opts->{'disabled_delete'},
-            'tabindex' => $self->tabindex,
-            'class' => "post-delete",
-            'onclick' => "return confirm('" .
-                LJ::ejs(BML::ml('entryform.delete.confirm')) . "')",
-        }
-    );
+    if ($opts->{'mode'} ne "update") {
+        $out .= LJ::html_submit(
+            'action:delete',
+            BML::ml('entryform.delete'),
+            {
+                'disabled' => $opts->{'disabled_delete'},
+                'tabindex' => $self->tabindex,
+                'class' => "post-delete",
+                'onclick' => "return confirm('" .
+                    LJ::ejs(BML::ml('entryform.delete.confirm')) . "')",
+            }
+        );
+    }
 
     $out .= "<div class='security-options'>\n";
     $out .= "<label for='security'>" . BML::ml('entryform.security2') . " </label>\n";

Tags: fiskus_boulder, livejournal, mchervonniy, 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