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'),
|
form = $('#Form_CommentsForm'),
|
||||||
error = $('#Form_CommentsForm_error', form).hide()
|
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
|
* Validate
|
||||||
|
@ -52,9 +52,10 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% else %>
|
|
||||||
<p class="no-comments-yet"><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %></p>
|
|
||||||
<% end_if %>
|
<% 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>
|
</div>
|
||||||
|
|
||||||
<% if DeleteAllLink %>
|
<% if DeleteAllLink %>
|
||||||
|
Loading…
Reference in New Issue
Block a user