* [MOD] Allows to select user's group in the account's main group select.

This commit is contained in:
nuxsmin
2017-02-01 18:40:49 +01:00
parent 1deaeaeb2a
commit a74136dcd3

View File

@@ -142,14 +142,7 @@
labelField: 'name',
searchField: ['name'],
plugins: ['remove_button'],
options: <?php echo $otherGroupsJson; ?>,
onInitialize: function () {
var userGroupId = <?php echo $gotData ? $accountData->getAccountUserGroupId() : 0; ?>;
if (userGroupId > 0) {
this.removeOption(userGroupId);
}
}
options: <?php echo $otherGroupsJson; ?>
});
})
;