use chzn-select for groups and users

This commit is contained in:
Uwe Steinmann 2021-03-02 07:31:23 +01:00
parent 1f1fe940f8
commit be4f2d4113
2 changed files with 6 additions and 2 deletions

View File

@ -106,7 +106,7 @@ $(document).ready( function() {
$allUsers = $dms->getAllUsers($sortusersinlist); $allUsers = $dms->getAllUsers($sortusersinlist);
foreach ($allUsers as $userObj) { foreach ($allUsers as $userObj) {
if (!$userObj->isGuest() && !$userObj->isDisabled() && ($document->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs)) if (!$userObj->isGuest() && !$userObj->isDisabled() && ($document->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
$options[] = array($userObj->getID(), htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName())); $options[] = array($userObj->getID(), htmlspecialchars($userObj->getLogin().' - '.$userObj->getFullName()), false, array(array('data-subtitle', htmlspecialchars($userObj->getEmail()))));
} }
} elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) { } elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) {
$options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName())); $options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName()));
@ -117,6 +117,7 @@ $(document).ready( function() {
'element'=>'select', 'element'=>'select',
'id'=>'userid', 'id'=>'userid',
'name'=>'userid', 'name'=>'userid',
'class'=>'chzn-select',
'options'=>$options 'options'=>$options
) )
); );
@ -134,6 +135,7 @@ $(document).ready( function() {
'element'=>'select', 'element'=>'select',
'id'=>'groupid', 'id'=>'groupid',
'name'=>'groupid', 'name'=>'groupid',
'class'=>'chzn-select',
'options'=>$options 'options'=>$options
) )
); );

View File

@ -106,7 +106,7 @@ $(document).ready(function() {
$allUsers = $dms->getAllUsers($sortusersinlist); $allUsers = $dms->getAllUsers($sortusersinlist);
foreach ($allUsers as $userObj) { foreach ($allUsers as $userObj) {
if (!$userObj->isGuest() && !$userObj->isDisabled() && ($folder->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs)) if (!$userObj->isGuest() && !$userObj->isDisabled() && ($folder->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
$options[] = array($userObj->getID(), htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName())); $options[] = array($userObj->getID(), htmlspecialchars($userObj->getLogin().' - '.$userObj->getFullName()), false, array(array('data-subtitle', htmlspecialchars($userObj->getEmail()))));
} }
} elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) { } elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) {
$options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName())); $options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName()));
@ -117,6 +117,7 @@ $(document).ready(function() {
'element'=>'select', 'element'=>'select',
'id'=>'userid', 'id'=>'userid',
'name'=>'userid', 'name'=>'userid',
'class'=>'chzn-select',
'options'=>$options 'options'=>$options
) )
); );
@ -134,6 +135,7 @@ $(document).ready(function() {
'element'=>'select', 'element'=>'select',
'id'=>'groupid', 'id'=>'groupid',
'name'=>'groupid', 'name'=>'groupid',
'class'=>'chzn-select',
'options'=>$options 'options'=>$options
) )
); );