Ejemplo n.º 1
0
			$(comment_text_truncated).dotdotdot({
				wrap: 'letter',
				height: 300,
				callback: function( isTruncated, orgContent ) {
					if(isTruncated){
						$(comment_data).find('.follow-reading-container').show();
					}
				}
			});
		});

	}

	userList = [<?php 
$users = ideary::getUsersForCommentTagging();
for ($i = 0; $i < count($users); $i++) {
    if ($i > 0) {
        echo ", ";
    }
    echo "{id: " . $users[$i]->id . ", name: '" . str_replace("'", "\\'", trim($users[$i]->name)) . "'}\n";
}
?>
];
	
	function getFilteredUserList(needle) {
		return $.grep(userList, function(e){
			return e.name.substring(0, needle.length).toLowerCase() == needle.toLowerCase()
		});
	}