mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-30 19:40:44 -07:00
Исправления ошибок с путями к изображениям.
This commit is contained in:
parent
68b722be83
commit
d940bde30d
15 changed files with 35 additions and 35 deletions
|
@ -334,7 +334,7 @@ function initQuotes(context)
|
|||
if ( quoted_pid = $q.children('u.q-post:first').text() ) {
|
||||
var on_this_page = $('#post_'+quoted_pid).length;
|
||||
var href = (on_this_page) ? '#'+ quoted_pid : './viewtopic.php?p='+ quoted_pid +'#'+ quoted_pid;
|
||||
q_title += ' <a href="'+ href +'" title="'+bbl['quoted_post']+'"><img src="'+bb_url+'templates/default/images/icon_latest_reply.gif" class="icon2" alt="" /></a>';
|
||||
q_title += ' <a href="'+ href +'" title="'+bbl['quoted_post']+'"><img src="'+bb_url+'styles/templates/default/images/icon_latest_reply.gif" class="icon2" alt="" /></a>';
|
||||
}
|
||||
$q.before('<div class="q-head">'+ q_title +'</div>');
|
||||
});
|
||||
|
@ -353,7 +353,7 @@ function initPostImages(context)
|
|||
$img.bind('click', function(){ return imgFit(this, maxW); });
|
||||
if (user.opt_js.i_aft_l) {
|
||||
$('#preload').append($img);
|
||||
var loading_icon = '<a href="'+ src +'" target="_blank"><img src="'+bb_url+'images/pic_loading.gif" alt="" /></a>';
|
||||
var loading_icon = '<a href="'+ src +'" target="_blank"><img src="'+bb_url+'styles/images/pic_loading.gif" alt="" /></a>';
|
||||
$v.html(loading_icon);
|
||||
if ($.browser.msie) {
|
||||
$v.after('<wbr>');
|
||||
|
@ -416,7 +416,7 @@ function fixPostImage ($img)
|
|||
var banned_image_hosts = /imagebanana|hidebehind/i;
|
||||
var src = $img[0].src;
|
||||
if (src.match(banned_image_hosts)) {
|
||||
$img.wrap('<a href="'+ this.src +'" target="_blank"></a>').attr({ src: ""+bb_url+"images/tr_oops.gif", title: ""+bbl['scr_rules']+"" });
|
||||
$img.wrap('<a href="'+ this.src +'" target="_blank"></a>').attr({ src: ""+bb_url+"styles/images/smiles/tr_oops.gif", title: ""+bbl['scr_rules']+"" });
|
||||
}
|
||||
return $img;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue