1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-09 07:49:46 +01:00

Fix js/expand.js

Fixed missing end tags and changed .text to .html since .text strips HTML
This commit is contained in:
joosera 2014-04-04 03:24:01 +01:00
parent a75523e05c
commit c0041931f5

View File

@ -20,7 +20,7 @@ $(document).ready(function(){
var do_expand = function() { var do_expand = function() {
$(this) $(this)
.html($(this).text().replace(_("Click reply to view."), '<a href="javascript:void(0)">'+_("Click to expand")+'</a>.')) .html($(this).html().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_/, '');
@ -64,3 +64,4 @@ $(document).ready(function(){
} }
}); });
}); });
});