mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
dont hide comment link when popping out
This commit is contained in:
parent
b5ca5f0bc9
commit
215e72d07c
1 changed files with 7 additions and 1 deletions
|
@ -9,8 +9,14 @@ var Template = {
|
||||||
|
|
||||||
renderComment: function(eventId) {
|
renderComment: function(eventId) {
|
||||||
var event = $('#event_'+eventId+'_actions')
|
var event = $('#event_'+eventId+'_actions')
|
||||||
|
var eventForms = event.find('form')
|
||||||
|
|
||||||
|
if(eventForms.length > 0) {
|
||||||
|
eventForms[0].remove()
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
var rendered = this.template($('#comment-template').html(), {eventId: eventId})
|
var rendered = this.template($('#comment-template').html(), {eventId: eventId})
|
||||||
event.find('a#reply').css('display', 'none')
|
|
||||||
event.append(rendered)
|
event.append(rendered)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue