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

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

Committer: wisest-owl
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 13:36:04 UTC (rev 20627)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-11-25 14:04:22 UTC (rev 20628)
@@ -1412,7 +1412,8 @@
     my $preview = qq{
         <a class="post-preview"
         tabindex="$preview_tabindex"
-        href="javascript:entryPreview(this.form)">
+        onclick="return entryPreview(\$(\\'updateForm\\'));"
+        href="#">
         $BML::ML{'entryform.preview'}
         </a>
     };
@@ -1423,11 +1424,9 @@
         
     unless ($opts->{'disabled_save'}) {
         $out .= $self->wrap_js(qq{
-            if (document.getElementById) {
-                setTimeout( function() {
-                    jQuery( '$preview' ).prependTo('#entryform-update-and-edit' );
-                }, 0 );
-            }
+            setTimeout( function() {
+                jQuery( '$preview' ).prependTo('#entryform-update-and-edit' );
+            }, 0 );
         });
     }
 

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