Fix fast reply button

This commit is contained in:
Ari Timonen 2020-04-07 00:46:15 +03:00
parent 0e9e1044e3
commit abea0c6573
2 changed files with 7 additions and 4 deletions

View file

@ -32,10 +32,13 @@ $(function() {
$(this).scrollTop(scrollTop-Math.round(delta));
});
// Forums fast reply
$("a#fastReply").on('click', function() {
$('#reply').fadeIn('slow')
$("a.fastReply").on('click', function() {
$('#reply').fadeIn('fast',
function() {
$(this).focus();
$("a.fastReply").hide();
});
});
// Gather stuff

View file

@ -54,7 +54,7 @@
<div>
<% if @newpost.can_create? cuser %>
<%= link_to 'Fast Reply', "#", class: 'button fastReply' %>
<%= link_to 'Fast Reply', "#999", class: 'button fastReply' %>
<%= link_to 'Reply', new_post_path(@newpost, id: @topic), class: 'button' %>
<% end %>
<% if @topic.can_update? cuser %>