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

Method success

app/views/editor/poll/PollEditView.js:187–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 return $.ajax({
186 type: 'DELETE',
187 success () {
188 noty({
189 timeout: 5000,
190 text: 'Aaaand it\'s gone.',
191 type: 'success',
192 layout: 'topCenter'
193 })
194 return _.delay(() => application.router.navigate('/editor/poll', { trigger: true })
195 , 500)
196 },
197 error (jqXHR, status, error) {
198 console.error(jqXHR)
199 return {

Callers 1

savePollMethod · 0.45

Calls 1

navigateMethod · 0.80

Tested by

no test coverage detected