Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Issue #35 Submit button is clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
moschlar committed May 7, 2012
1 parent ece119c commit 5642948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sauce/controllers/submissions.py
Expand Up @@ -301,7 +301,8 @@ def edit(self, **kwargs):
#redirect(url(self.submission.url + '/edit'))
elif test:
if result:
c.child_args['buttons.submit'] = dict(disabled=False)
#c.child_args['buttons.submit'] = dict(disabled=False)
pass

c.options = self.submission

Expand Down
2 changes: 1 addition & 1 deletion sauce/widgets/submission.py
Expand Up @@ -18,7 +18,7 @@ class SubmitButtonTable(ButtonTable):
fields = [
SubmitButton('test', label_text='Test', default='Test', named_button=True,
help_text=u'Compile and run tests on your source code'),
SubmitButton('submit', disabled=True, label_text='Submit', default='Submit', named_button=True,
SubmitButton('submit', disabled=False, label_text='Submit', default='Submit', named_button=True,
help_text=u'Submit your source code for final evaluation'),
SubmitButton('reset', label_text='Reset', default='Reset', named_button=True,
help_text=u'Reset this submission'),
Expand Down

0 comments on commit 5642948

Please sign in to comment.