This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -305,18 +305,19 @@ $(document).ready(function (e) {
305
305
if ( typeof ( q ) === 'string' && q . length > 0 ) {
306
306
$ . ajax ( {
307
307
type : 'GET' ,
308
- url : member_api_url ,
308
+ url : member_api_url + q ,
309
309
cache : false ,
310
310
dataType : 'json' ,
311
311
contentType : 'application/json; charset=utf-8' ,
312
- data : { 'handle' : q } ,
313
312
async : false ,
314
313
success : function ( result ) {
315
- $ . each ( result [ 'result' ] [ 'content' ] , function ( index , member ) {
316
- if ( $ . inArray ( member [ 'handle' ] , currentList ) < 0 ) {
317
- members . push ( { 'id' : member [ 'userId' ] . toString ( ) , 'name' : member [ 'handle' ] } ) ;
318
- }
319
- } ) ;
314
+ if ( typeof ( result [ 'result' ] ) !== 'undefined' ) {
315
+ $ . each ( result [ 'result' ] [ 'content' ] , function ( index , member ) {
316
+ if ( $ . inArray ( member [ 'handle' ] , currentList ) < 0 ) {
317
+ members . push ( { 'id' : member [ 'userId' ] . toString ( ) , 'name' : member [ 'handle' ] } ) ;
318
+ }
319
+ } ) ;
320
+ }
320
321
} ,
321
322
error : function ( ) {
322
323
throw ( "Problem getting members" ) ;
Original file line number Diff line number Diff line change @@ -254,16 +254,20 @@ $(document).ready(function() {
254
254
if ( typeof ( q ) === 'string' && q . length > 0 ) {
255
255
$ . ajax ( {
256
256
type : 'GET' ,
257
- url : member_api_url ,
257
+ url : member_api_url + q ,
258
258
cache : false ,
259
259
dataType : 'json' ,
260
260
contentType : 'application/json; charset=utf-8' ,
261
- data : { 'handle' : q } ,
262
261
async : false ,
263
262
success : function ( result ) {
264
- $ . each ( result [ 'result' ] [ 'content' ] , function ( index , member ) {
265
- members . push ( { 'id' : member [ 'userId' ] . toString ( ) , 'name' : member [ 'handle' ] } ) ;
266
- } ) ;
263
+ if ( typeof ( result [ 'result' ] ) !== 'undefined' ) {
264
+ $ . each ( result [ 'result' ] [ 'content' ] , function ( index , member ) {
265
+ members . push ( {
266
+ 'id' : member [ 'userId' ] . toString ( ) ,
267
+ 'name' : member [ 'handle' ]
268
+ } ) ;
269
+ } ) ;
270
+ }
267
271
} ,
268
272
error : function ( ) {
269
273
throw ( "Problem getting members" ) ;
Original file line number Diff line number Diff line change 359
359
@ApplicationServer.JWT_V3_COOKIE_KEY@=v3jwt
360
360
@ApplicationServer.DIRECT_API_SERVICE_ENDPOINT@= direct.dev.topcoder.com/direct/api/v2/
361
361
362
- @memberSearchApiUrl@=https://tc-api.cloud.topcoder.com:8443/v3/members/_search/?query=MEMBER_SEARCH&offset=0&limit=10
362
+ @memberSearchApiUrl@=https://tc-api.cloud.topcoder.com:8443/v3/members/_suggest/
363
363
@directChallengeServicesApiUrl@=http://api.topcoder-dev.com/v3/direct/challenges
364
+
Original file line number Diff line number Diff line change 416
416
@LDAP_AUTH0_CONNECTION_NAME@=vm-ldap-connection
417
417
@member.profile.url.base@=http://tc.cloud.topcoder.com
418
418
419
- @memberSearchApiUrl@=https://tc-api.cloud.topcoder.com:8443/v3/members/_search/?query=MEMBER_SEARCH&offset=0&limit=10
420
- @directChallengeServicesApiUrl@=http://api.topcoder-dev.com/v3/direct/challenges
419
+ @memberSearchApiUrl@=https://tc-api.cloud.topcoder.com:8443/v3/members/_suggest/
420
+ @directChallengeServicesApiUrl@=http://api.topcoder-dev.com/v3/direct/challenges
421
+
You can’t perform that action at this time.
0 commit comments