Browse Source

filter out group aliases from listwalletusers

master
Miguel Freitas 10 years ago
parent
commit
4365e83028
  1. 8
      js/twister_user.js

8
js/twister_user.js

@ -63,7 +63,13 @@ function incLastPostId( optionalNewValue ) {
function loadWalletlUsers(cbFunc, cbArg) { function loadWalletlUsers(cbFunc, cbArg) {
twisterRpc("listwalletusers", [], twisterRpc("listwalletusers", [],
function(args, ret) { function(args, ret) {
localUsernames = ret; localUsernames = [];
for( var i = 0; i < ret.length; i++ ) {
// filter out group aliases
if( ret.length && ret[i][0] !== '*' ) {
localUsernames.push(ret[i]);
}
}
args.cbFunc(args.cbArg); args.cbFunc(args.cbArg);
}, {cbFunc:cbFunc, cbArg:cbArg}, }, {cbFunc:cbFunc, cbArg:cbArg},
function(args, ret) { function(args, ret) {

Loading…
Cancel
Save