mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
MINOR no comments message always comes from template, making it easier to customise and translate
This commit is contained in:
parent
967c6ed78d
commit
3bdd155221
@ -10,11 +10,6 @@
|
||||
form = $('#Form_CommentsForm'),
|
||||
error = $('#Form_CommentsForm_error', form).hide()
|
||||
|
||||
// create the not comments message if it doesn't exist yet, but hide it (incase we need it)
|
||||
if(!noCommentsYet.length){
|
||||
noCommentsYet = $('<p class="no-comments-yet">No one has commented on this page yet.</p>').appendTo(commentsHolder).hide();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Validate
|
||||
|
@ -52,9 +52,10 @@
|
||||
</p>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% else %>
|
||||
<p class="no-comments-yet"><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %></p>
|
||||
<% end_if %>
|
||||
|
||||
<p class="no-comments-yet"<% if $Comments.Count %> style='display: none' <% end_if %> ><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %></p>
|
||||
|
||||
</div>
|
||||
|
||||
<% if DeleteAllLink %>
|
||||
|
Loading…
Reference in New Issue
Block a user