Show More
Commit Description:
* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission
Commit Description:
* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission* refactor go-botton for problem selection in main/submission
File last commit:
Show/Diff file:
Action:
app/views/problems/toggle.js.haml | 12 lines | 413 B | text/x-haml | HamlLexer |
:plain
b = $("#prob-#{@problem.id}-avail");
b.removeClass('btn-default');
b.removeClass('btn-success');
b.removeClass('btn-warning');
b.addClass("btn-#{@problem.available? ? 'success' : 'default'}");
b.text("#{@problem.available? ? 'Yes' : 'No'}");
r = $("#prob-#{@problem.id}");
r.removeClass('success');
r.removeClass('danger');
r.addClass("#{@problem.available? ? 'success' : 'danger'}");