js i18n: expand.js
This commit is contained in:
parent
da9f367f2f
commit
37c1b134de
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
*expand.js
|
* expand.js
|
||||||
* https://github.com/savetheinternet/Tinyboard/blob/master/js/expand.js
|
* https://github.com/savetheinternet/Tinyboard/blob/master/js/expand.js
|
||||||
*
|
*
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
@ -17,7 +17,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
$('div.post.op span.omitted').each(function() {
|
$('div.post.op span.omitted').each(function() {
|
||||||
$(this)
|
$(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() {
|
.find('a').click(function() {
|
||||||
var thread = $(this).parent().parent().parent();
|
var thread = $(this).parent().parent().parent();
|
||||||
var id = thread.attr('id').replace(/^thread_/, '');
|
var id = thread.attr('id').replace(/^thread_/, '');
|
||||||
@ -38,7 +38,7 @@ $(document).ready(function(){
|
|||||||
$(document).trigger('new_post', this);
|
$(document).trigger('new_post', this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('<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'))
|
.insertAfter(thread.find('span.omitted').css('display', 'none'))
|
||||||
.click(function() {
|
.click(function() {
|
||||||
thread.find('.expanded').remove();
|
thread.find('.expanded').remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user