js/expand.js

This commit is contained in:
Czterooki 2013-07-20 00:06:08 -04:00
parent 01d9ad9d43
commit dfddeb30da

View File

@ -17,12 +17,12 @@ $(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\.|Kliknij Odpowiedź aby zobaczyć\./, '<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_/, '');
$.ajax({ $.ajax({
url: thread.find('p.intro a.post_no:first').attr('href'), url: thread.find('p.intro a.post_no.p1:first').attr('href'),
context: document.body, context: document.body,
success: function(data) { success: function(data) {
var last_expanded = false; var last_expanded = false;