up limit of share dropdown from 4 to 15, scrollbar after 4 1/2 entries, fix #135
This commit is contained in:
parent
a2147c4f89
commit
fbb989f548
|
@ -185,8 +185,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
$users = array();
|
$users = array();
|
||||||
$limit = 0;
|
$limit = 0;
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while ($count < 4 && count($users) == $limit) {
|
while ($count < 15 && count($users) == $limit) {
|
||||||
$limit = 4 - $count;
|
$limit = 15 - $count;
|
||||||
if ($sharePolicy == 'groups_only') {
|
if ($sharePolicy == 'groups_only') {
|
||||||
$users = OC_Group::DisplayNamesInGroups($groups, $_GET['search'], $limit, $offset);
|
$users = OC_Group::DisplayNamesInGroups($groups, $_GET['search'], $limit, $offset);
|
||||||
} else {
|
} else {
|
||||||
|
@ -209,7 +209,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
}
|
}
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($groups as $group) {
|
foreach ($groups as $group) {
|
||||||
if ($count < 4) {
|
if ($count < 15) {
|
||||||
if (stripos($group, $_GET['search']) !== false
|
if (stripos($group, $_GET['search']) !== false
|
||||||
&& (!isset($_GET['itemShares'])
|
&& (!isset($_GET['itemShares'])
|
||||||
|| !isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])
|
|| !isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP])
|
||||||
|
|
|
@ -91,3 +91,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.reshare { white-space:normal; } /* fix shared by text going out of box */
|
.reshare { white-space:normal; } /* fix shared by text going out of box */
|
||||||
|
|
||||||
|
.ui-autocomplete { /* limit dropdown height to 4 1/2 entries */
|
||||||
|
max-height:103px;
|
||||||
|
overflow-y:auto;
|
||||||
|
overflow-x:hidden;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue