mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Added visual feedback for simulation buttons
This commit is contained in:
parent
bce184b9da
commit
a2b811d52f
1 changed files with 5 additions and 2 deletions
|
@ -33,10 +33,13 @@ module.exports = class LadderView extends RootView
|
|||
method: 'POST'
|
||||
data:
|
||||
session: ID
|
||||
alert "Simulating all games!"
|
||||
alert "(do not push more than once pls)"
|
||||
$("#simulate-all-button").prop "disabled", true
|
||||
$("#simulate-all-button").text "Submitted all!"
|
||||
|
||||
onSimulateButtonClick: (e) ->
|
||||
$("#simulate-button").prop "disabled",true
|
||||
$("#simulate-button").text "Simulating..."
|
||||
|
||||
@simulator.fetchAndSimulateTask()
|
||||
|
||||
updateSimulationStatus: (simulationStatus, sessions)->
|
||||
|
|
Loading…
Reference in a new issue