Commit f0e67ce8 by Giulio Gratta

making sure submit button is enabled before it is shown.

parent e3f29d76
...@@ -211,7 +211,6 @@ class @PeerGradingProblem ...@@ -211,7 +211,6 @@ class @PeerGradingProblem
@calibration = null @calibration = null
@submit_button = $('.submit-button') @submit_button = $('.submit-button')
@submit_button.attr('disabled', false)
@action_button = $('.action-button') @action_button = $('.action-button')
@calibration_feedback_button = $('.calibration-feedback-button') @calibration_feedback_button = $('.calibration-feedback-button')
@interstitial_page_button = $('.interstitial-page-button') @interstitial_page_button = $('.interstitial-page-button')
...@@ -526,6 +525,7 @@ class @PeerGradingProblem ...@@ -526,6 +525,7 @@ class @PeerGradingProblem
@action_button.show() @action_button.show()
show_submit_button: () => show_submit_button: () =>
@submit_button.attr('disabled', false)
@submit_button.show() @submit_button.show()
setup_score_selection: (max_score) => setup_score_selection: (max_score) =>
......
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