MCPcopy Index your code
hub / github.com/codecombat/codecombat / onUserIDInput

Method onUserIDInput

app/views/admin/CodeLogsView.js:48–61  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

46 // @supermodel.trackRequest(@codelogs.fetch())
47
48 onUserIDInput (e) {
49 const userID = $('#userid-search')[0].value
50 if (userID !== '') {
51 return Promise.resolve(this.codelogs.fetchByUserID(userID))
52 .then(e => {
53 return this.renderSelectors('#codelogtable')
54 })
55 } else {
56 return Promise.resolve(this.codelogs.fetchLatest())
57 .then(e => {
58 return this.renderSelectors('#codelogtable')
59 })
60 }
61 }
62
63 onLevelSlugInput (e) {
64 const slug = $('#levelslug-search')[0].value

Callers

nothing calls this directly

Calls 2

fetchByUserIDMethod · 0.80
fetchLatestMethod · 0.80

Tested by

no test coverage detected