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

[livejournal] r19705: LJSUP-9184: Submit button on Update.bml ...

Committer: wisest-owl
LJSUP-9184: Submit button on Update.bml doesn't work in Opera (turbo) [tags: can3p]

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-08-12 02:13:51 UTC (rev 19704)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-08-12 03:29:01 UTC (rev 19705)
@@ -1079,6 +1079,7 @@
                 $out .= qq{
                     <input type='submit' name='action:$action'
                         class='hidden_submit' />
+                    <span id="preview_button_holder"></span>
                 };
             }
             my $preview_tabindex = $self->tabindex;
@@ -1096,7 +1097,7 @@
             unless ($opts->{'disabled_save'}) {
                 $out .= $self->wrap_js(qq{
                     if (document.getElementById) {
-                        document.write("$preview ");
+                        \$('preview_button_holder').innerHTML = "$preview ";
                     }
                 });
             }

Tags: can3p, 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