mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-02-04 15:31:09 +00:00
Fix fast reply button
This commit is contained in:
parent
0e9e1044e3
commit
abea0c6573
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue