Show More
Commit Description:
* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission
Commit Description:
* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission
References:
File last commit:
Show/Diff file:
Action:
app/assets/javascripts/announcements.js.coffee
| 14 lines
| 410 B
| text/coffeescript
| CoffeeScriptLexer
|
r557 | #js for announcement | |||
$ -> | ||||
$('.ajax-toggle').on 'click', (event) -> | ||||
target = $(event.target) | ||||
target.removeClass 'btn-default' | ||||
target.removeClass 'btn-success' | ||||
target.addClass 'btn-warning' | ||||
target.text '...' | ||||
return | ||||
$(document).ajaxError (event, jqxhr, settings, exception) -> | ||||
if jqxhr.status | ||||
alert 'We\'re sorry, but something went wrong (' + jqxhr.status + ')' | ||||
return | ||||