MCPcopy Create free account
hub / github.com/codecombat/codecombat / onClickPrivateCheckbox

Method onClickPrivateCheckbox

app/views/clans/ClansView.js:216–223  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

214 }
215
216 onClickPrivateCheckbox (e) {
217 if (me.isAnonymous()) { return this.openModalView(new CreateAccountModal()) }
218 if ($('.private-clan-checkbox').prop('checked') && !me.isPremium()) {
219 $('.private-clan-checkbox').attr('checked', false)
220 this.openModalView(new SubscribeModal())
221 return (window.tracker != null ? window.tracker.trackEvent('Show subscription modal', { category: 'Subscription', label: 'check private clan' }) : undefined)
222 }
223 }
224 }
225 ClansView.initClass()
226 return ClansView

Callers

nothing calls this directly

Calls 3

isAnonymousMethod · 0.80
isPremiumMethod · 0.80
trackEventMethod · 0.45

Tested by

no test coverage detected