hide-images.js: javascript i18n
This commit is contained in:
parent
a1b739b818
commit
e648121e4a
@ -47,13 +47,13 @@ $(document).ready(function(){
|
|||||||
var fileinfo = $(this).parent().prev();
|
var fileinfo = $(this).parent().prev();
|
||||||
var id = $(this).parent().parent().find('>p.intro>a.post_no:eq(1),>div.post.op>p.intro>a.post_no:eq(1)').text();
|
var id = $(this).parent().parent().find('>p.intro>a.post_no:eq(1),>div.post.op>p.intro>a.post_no:eq(1)').text();
|
||||||
|
|
||||||
var replacement = $('<span>File <small>(<a class="hide-image-link" href="javascript:void(0)">hide</a>)</small>: </span>');
|
var replacement = $('<span>'+_('File')+' <small>(<a class="hide-image-link" href="javascript:void(0)">'+_('hide')+'</a>)</small>: </span>');
|
||||||
|
|
||||||
replacement.find('a').click(function() {
|
replacement.find('a').click(function() {
|
||||||
hidden_data[board][id] = Math.round(Date.now() / 1000);
|
hidden_data[board][id] = Math.round(Date.now() / 1000);
|
||||||
store_data();
|
store_data();
|
||||||
|
|
||||||
var show_link = $('<a class="show-image-link" href="javascript:void(0)">show</a>').click(function() {
|
var show_link = $('<a class="show-image-link" href="javascript:void(0)">'+_('show')+'</a>').click(function() {
|
||||||
delete hidden_data[board][id];
|
delete hidden_data[board][id];
|
||||||
store_data();
|
store_data();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user