You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
540 B
540 B
/*PHP*/
static function ReduceStringForPreview($text,$size=100)
{
define($reduced,'');
if(strlen($text) > $size){
$reduced .= "
". substr($text, 0, $size);
$remaining = substr($text, $size);
$reduced .= "...
";
$text = $reduced;
}
return $text;
}
/*jQuery*/
$(".preview_releaser").click(function(){
$(this).children('span').toggle('fast',function(){
if($(this).css('display') == 'inline-block'){
$(this).css('display','inline');
}
});