mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 05:33:11 -04:00
Strinct comparsion fix
This commit is contained in:
parent
26d9993b3e
commit
cd97847cd6
1 changed files with 2 additions and 2 deletions
|
|
@ -365,7 +365,7 @@ var UserList = {
|
|||
var user = UserList.getUID($element);
|
||||
|
||||
if ($element.data('user-groups')) {
|
||||
if (typeof $element.data('user-groups') == 'string') {
|
||||
if (typeof $element.data('user-groups') === 'string') {
|
||||
checked = $element.data('user-groups').split(", ");
|
||||
}
|
||||
else {
|
||||
|
|
@ -450,7 +450,7 @@ var UserList = {
|
|||
var user = UserList.getUID($element);
|
||||
|
||||
if ($element.data('subadmin')) {
|
||||
if (typeof $element.data('subadmin') == 'string') {
|
||||
if (typeof $element.data('subadmin') === 'string') {
|
||||
checked = $element.data('subadmin').split(", ");
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue