Commit fb1dff3e authored by Andreas Gärtner's avatar Andreas Gärtner

Debounced start/end buttons in RoundManagementPanel.

Task #14412
parent 630852be
......@@ -60,10 +60,12 @@ Ext.define('ARSnova.view.speaker.RoundManagementPanel', {
ui: 'confirm',
width: 220,
scope: this,
handler: function() {
handler: function(button) {
button.disable();
this.startNewPiRound(this.countdownTimer.slider.getValue() * 60);
this.startRoundButton.hide();
this.endRoundButton.show();
button.enable();
}
});
......@@ -74,12 +76,15 @@ Ext.define('ARSnova.view.speaker.RoundManagementPanel', {
hidden: true,
width: 220,
scope: this,
handler: function() {
handler: function(button) {
button.disable();
Ext.Msg.confirm(Messages.END_ROUND, Messages.END_ROUND_WARNING, function(id) {
if(id === 'yes') {
this.countdownTimer.stop();
this.startNewPiRound();
}
button.enable();
}, this);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment