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);
|
$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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user