Skip to content

Commit

Permalink
Merge branch 'kaigionrails' into kaigionrails2024
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke committed Jul 30, 2024
2 parents bcfacdb + b87676f commit d2146b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/javascripts/proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ $(function() {
}
});
}

$('button.save-comment.public-comment').click(function() {
if (!confirm("Are you sure you're posting a Public comment?")) {
return false;
}
});
});
2 changes: 1 addition & 1 deletion app/views/proposals/_comments.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
- input_class = internal?(f.object) ? 'form-control mention' : 'form-control'
= f.text_area :body, class: input_class, placeholder: 'Add your comment', rows: 5, data: { mention_names: internal?(f.object) ? @mention_names : nil }
.form-group
%button.btn.btn-success.save-comment(type="submit")
%button.btn.btn-success.save-comment(type="submit"){class: "#{'public-comment' unless internal?(f.object)}"}
%span.glyphicon.glyphicon-ok
Comment

0 comments on commit d2146b2

Please sign in to comment.