MINOR no comments message always comes from template, making it easier to customise and translate

This commit is contained in:
Shea Dawson 2013-02-19 18:17:19 +11:00 committed by Will Rossiter
parent 967c6ed78d
commit 3bdd155221
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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 %>