Show More
Commit Description:
* add forgotten toggle file...
Commit Description:
* add forgotten toggle file * main/submission changed to bootstrap
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'}");