wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20174: LJSUP-9926: No need to show "Restore fro...

Committer: gprochaev
LJSUP-9926: No need to show "Restore from draft" dialog (on update.bml) if user adds image to post (from catalog)

U   trunk/htdocs/update.bml
U   trunk/htdocs/update.bml.text
Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2011-09-29 11:35:29 UTC (rev 20173)
+++ trunk/htdocs/update.bml	2011-09-29 11:44:21 UTC (rev 20174)
@@ -727,6 +727,9 @@
 
     my $eMLautosave = LJ::ejs(BML::ml('.draft.autosave', { 'time' => '[[time]]' }));
     my $eMLconfirm = LJ::ejs($ML{'.draft.confirm'});
+    if ($POST{'photos_id'} || $GET{'photos_id'} || $POST{'albums_id'} || $GET{'albums_id'}) {
+        $eMLconfirm = LJ::ejs($ML{'.draft.confirm.add_photos'});
+    }
     my $eMLrestored = LJ::ejs($ML{'.draft.restored'});
 
     # Setup draft saving and try to restore from a draft

Modified: trunk/htdocs/update.bml.text
===================================================================
--- trunk/htdocs/update.bml.text	2011-09-29 11:35:29 UTC (rev 20173)
+++ trunk/htdocs/update.bml.text	2011-09-29 11:44:21 UTC (rev 20174)
@@ -19,6 +19,8 @@
 
 .draft.confirm=Restore from saved draft?
 
+.draft.confirm.add_photos=Restore from saved draft?
+
 .draft.restored=Restored last saved draft
 
 .error.cantpost=Sorry, you cannot post at this time.

Tags: bml, livejournal, text, wisest-owl
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