mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
use chzn-select for groups and users
This commit is contained in:
parent
1f1fe940f8
commit
be4f2d4113
|
@ -106,7 +106,7 @@ $(document).ready( function() {
|
|||
$allUsers = $dms->getAllUsers($sortusersinlist);
|
||||
foreach ($allUsers as $userObj) {
|
||||
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)) {
|
||||
$options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName()));
|
||||
|
@ -117,6 +117,7 @@ $(document).ready( function() {
|
|||
'element'=>'select',
|
||||
'id'=>'userid',
|
||||
'name'=>'userid',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
|
@ -134,6 +135,7 @@ $(document).ready( function() {
|
|||
'element'=>'select',
|
||||
'id'=>'groupid',
|
||||
'name'=>'groupid',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
|
|
|
@ -106,7 +106,7 @@ $(document).ready(function() {
|
|||
$allUsers = $dms->getAllUsers($sortusersinlist);
|
||||
foreach ($allUsers as $userObj) {
|
||||
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)) {
|
||||
$options[] = array($user->getID(), htmlspecialchars($user->getLogin() . " - " .$user->getFullName()));
|
||||
|
@ -117,6 +117,7 @@ $(document).ready(function() {
|
|||
'element'=>'select',
|
||||
'id'=>'userid',
|
||||
'name'=>'userid',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
|
@ -134,6 +135,7 @@ $(document).ready(function() {
|
|||
'element'=>'select',
|
||||
'id'=>'groupid',
|
||||
'name'=>'groupid',
|
||||
'class'=>'chzn-select',
|
||||
'options'=>$options
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user