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

[livejournal] r20994: LJSUP-10060: Don't must be ability to up...

Committer: wisest-owl
LJSUP-10060: Don't must be ability to upload photos for Basic accounts

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-25 12:16:06 UTC (rev 20993)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-25 12:18:47 UTC (rev 20994)
@@ -9,6 +9,8 @@
 
 use LJ::GeoLocation;
 
+use LJ::Lang qw/ml/;
+
 sub set_data {
     my ($self, $opts, $head, $onload, $errors, $js) = @_;
     $self->{'opts'} = $opts;
@@ -1800,22 +1802,16 @@
         $$js .= 'initEntryDate();';
         my $ljphoto_enabled = $remote ? $remote->can_upload_photo() : 0;
         unless ($ljphoto_enabled) {
+            my $fotki_error_upgrade_link = ml('fotki.error.upgrade.link');
+            my $fotki_error_upgrade_description = ml('fotki.error.upgrade.description');
+            my $fotki_error_upgrade_title = ml('fotki.error.upgrade.title');
+            $$js .= "window.fotkiErrorUpgradeTitle = '$fotki_error_upgrade_title';";
             $out .= <<DISABLE_HTML;
 
-<div class="b-popup b-popup-pics" id="pics-error-upgrade" style="display: none;">
-    <div class="b-popup-outer">
-        <div class="b-popup-inner">
-            <div class="popup-inner">
-                <div class="b-popup-state-container b-popup-pics-upload b-popup-pics-upload-error">
-                    <h2 class="b-popup-pics-upload-header"><tmpl_var expr="ml('fotki.error.upgrade.title')"></h2>
-                    <p class="i-bubble b-bubble-lite b-bubble-noarrow"><tmpl_var expr="ml('fotki.error.upgrade.description')"></p>
-                    <p><a href="/manage/account/"><tmpl_var expr="ml('fotki.error.upgrade.link')"></a></p>
-                    <i class="i-popup-close"></i>
-                </div>
+            <div id="pics-error-upgrade" style="display: none;">
+                <p class="i-bubble b-bubble-lite b-bubble-noarrow">$fotki_error_upgrade_description</p>
+                <p><a href="/manage/account/">$fotki_error_upgrade_link</a></p>
             </div>
-        </div>
-    </div>
-</div>
 
 DISABLE_HTML
 

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