Committer: wisest-owl
LJSUP-10471: Moving buttons: Post / Preview / DeleteU 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 ); }); }