Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Reveal preview button using javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Pouclet committed Nov 4, 2011
1 parent dbf5ee7 commit 33e1e06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/views/Project/_comments.html.twig
Expand Up @@ -42,9 +42,9 @@

{{ form_errors(form) }}

<ul class="tabs">
<li class="active"><a href="" class="write_comment_link">Comment</a></li>
<li><a href="" class="show_preview_link">Preview</a></li>
<ul class="tabs preview_tabs">
<li class="active"><a href="#comment" class="write_comment_link">Comment</a></li>
<li><a href="#preview" class="show_preview_link">Preview</a></li>
</ul>

<fieldset>
Expand Down
4 changes: 4 additions & 0 deletions web/css/style.css
Expand Up @@ -49,4 +49,8 @@ input {

.comment_form fieldset {
clear:left;
}

.preview_tabs {
display:none;
}
2 changes: 2 additions & 0 deletions web/js/marketplace.js
@@ -1,6 +1,8 @@
jQuery(function($) {
var field, parent, preview_link, comment_link, comment_field_container, preview_container;

$(".preview_tabs").show();

field = $(".comment_field");

comment_field_container = $(".comment_field_container");
Expand Down

0 comments on commit 33e1e06

Please sign in to comment.