Added visual feedback for simulation buttons

This commit is contained in:
Michael Schmatz 2014-02-20 10:40:16 -08:00
parent bce184b9da
commit a2b811d52f

View file

@ -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)->