className to class in page_header.tpl git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@402 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
dimka3210 2012-04-19 20:17:57 +00:00
commit 3bb90433be

View file

@ -52,7 +52,7 @@ function initPostImages(context)
$('var.postImg', context).not($in_spoilers).each(function(){
var $v = $(this);
var src = $v.attr('title');
var $img = $('<img src="'+ src +'" class="'+ $v.attr('className') +'" alt="pic" />');
var $img = $('<img src="'+ src +'" class="'+ $v.attr('class') +'" alt="pic" />');
$img = fixPostImage($img);
var maxW = ($v.hasClass('postImgAligned')) ? postImgAligned_MaxWidth : postImg_MaxWidth;
$img.bind('click', function(){ return imgFit(this, maxW); });