add divmore to directory entries
This commit is contained in:
parent
789e025eab
commit
07e747ed0e
@ -309,8 +309,9 @@ function directory_content(&$a) {
|
|||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$maxheight = 175;
|
||||||
|
|
||||||
$o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
|
$o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; divmore_height = " . intval($maxheight) . "; </script>";
|
||||||
$o .= replace_macros($tpl, array(
|
$o .= replace_macros($tpl, array(
|
||||||
'$search' => $search,
|
'$search' => $search,
|
||||||
'$desc' => t('Find'),
|
'$desc' => t('Find'),
|
||||||
|
@ -592,7 +592,7 @@ function updateConvItems(mode,data) {
|
|||||||
|
|
||||||
|
|
||||||
function collapseHeight() {
|
function collapseHeight() {
|
||||||
$(".wall-item-body").each(function() {
|
$(".wall-item-body, .directory-item").each(function() {
|
||||||
if($(this).height() > divmore_height + 10) {
|
if($(this).height() > divmore_height + 10) {
|
||||||
if(! $(this).hasClass('divmore')) {
|
if(! $(this).hasClass('divmore')) {
|
||||||
$(this).divgrow({ initialHeight: divmore_height, moreText: aStr['divgrowmore'], lessText: aStr['divgrowless'], showBrackets: false });
|
$(this).divgrow({ initialHeight: divmore_height, moreText: aStr['divgrowmore'], lessText: aStr['divgrowless'], showBrackets: false });
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="directory-item lframe" id="directory-item-{{$entry.id}}" >
|
<div class="directory-item lframe divmore" id="directory-item-{{$entry.id}}" >
|
||||||
|
|
||||||
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.id}}" >
|
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.id}}" >
|
||||||
<div class="contact-photo" id="directory-photo-{{$entry.id}}" >
|
<div class="contact-photo" id="directory-photo-{{$entry.id}}" >
|
||||||
|
Reference in New Issue
Block a user