js i18n: expand.js

This commit is contained in:
czaks 2013-07-03 01:17:56 -04:00 committed by Michael Foster
parent 0a97cf7215
commit 4922828e35

View File

@ -17,7 +17,7 @@ $(document).ready(function(){
$('div.post.op span.omitted').each(function() {
$(this)
.html($(this).text().replace(/Click reply to view\./, '<a href="javascript:void(0)">Click to expand</a>.'))
.html($(this).text().replace(_("Click reply to view."), '<a href="javascript:void(0)">'+_("Click to expand")+'</a>.'))
.find('a').click(function() {
var thread = $(this).parent().parent().parent();
var id = thread.attr('id').replace(/^thread_/, '');
@ -40,7 +40,7 @@ $(document).ready(function(){
last_expanded = post_in_doc;
}
});
$('<span class="omitted"><a href="javascript:void(0)">Hide expanded replies</a>.</span>')
$('<span class="omitted"><a href="javascript:void(0)">' + _('Hide expanded replies') + '</a>.</span>')
.insertAfter(thread.find('span.omitted').css('display', 'none'))
.click(function() {
thread.find('.expanded').remove();