aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-16 17:29:16 -0800
committerfriendica <info@friendica.com>2014-12-16 17:29:16 -0800
commit07e747ed0e09f1ab1226855a870de0c8c3c32341 (patch)
tree4fd2a86f506ebf7472fcd599cb97e94403670946
parent789e025eab00a8feeba9644b7541119daea6b078 (diff)
downloadvolse-hubzilla-07e747ed0e09f1ab1226855a870de0c8c3c32341.tar.gz
volse-hubzilla-07e747ed0e09f1ab1226855a870de0c8c3c32341.tar.bz2
volse-hubzilla-07e747ed0e09f1ab1226855a870de0c8c3c32341.zip
add divmore to directory entries
-rw-r--r--mod/directory.php3
-rw-r--r--view/js/main.js2
-rwxr-xr-xview/tpl/direntry.tpl2
3 files changed, 4 insertions, 3 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 85c2d4c84..98d81f947 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -309,8 +309,9 @@ function directory_content(&$a) {
killme();
}
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(
'$search' => $search,
'$desc' => t('Find'),
diff --git a/view/js/main.js b/view/js/main.js
index 4700f79ca..57fdb6c88 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -592,7 +592,7 @@ function updateConvItems(mode,data) {
function collapseHeight() {
- $(".wall-item-body").each(function() {
+ $(".wall-item-body, .directory-item").each(function() {
if($(this).height() > divmore_height + 10) {
if(! $(this).hasClass('divmore')) {
$(this).divgrow({ initialHeight: divmore_height, moreText: aStr['divgrowmore'], lessText: aStr['divgrowless'], showBrackets: false });
diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl
index cdc6f1f97..e77744e00 100755
--- a/view/tpl/direntry.tpl
+++ b/view/tpl/direntry.tpl
@@ -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" id="directory-photo-{{$entry.id}}" >