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

[livejournal] r21783: LJSUP-11904: Disable image wizards in RT...

Committer: wisest-owl
LJSUP-11904: Disable image wizards in RTE and HTML tabs at update.bml

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-23 10:58:54 UTC (rev 21782)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-23 11:59:27 UTC (rev 21783)
@@ -1697,8 +1697,13 @@
 
     my $photouploader_params_out = LJ::JSON->to_json($photouploader_params);
 
+    my $migration_started = $remote && LJ::Pics::Migration->user_under_maintenance ($remote) ? 1 : 0;
+    my $migration_finished = $remote && $remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE() ? 1 : 0;
+
     $out .= <<JS ;
 <script type="text/javascript">
+    window.ljphotoMigrationStarted = $migration_started;
+    window.ljphotoMigrationFinished = $migration_finished;
     window.ljphotoEnabled = $ljphoto_enabled;
     jQuery('#updateForm').photouploader($photouploader_params_out);
 </script>
@@ -1916,6 +1921,10 @@
         }
         my $show_button = 0;
         $show_button = 1 if $remote && ($remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE()) && $remote->can_use_ljphoto;
+        my $migration_started = $remote && LJ::Pics::Migration->user_under_maintenance ($remote) ? 1 : 0;
+        my $migration_finished = $remote && $remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE() ? 1 : 0;
+        $$js .= "window.ljphotoMigrationStarted = $migration_started;";
+        $$js .= "window.ljphotoMigrationFinished = $migration_finished;";
         $$js .= "window.ljphotoEnabled = $show_button;";
         $$js .= "window.ljphotoUploadEnabled = $ljphoto_enabled;";
         $$js = $self->wrap_js($$js);

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