Show More
Commit Description:
* add forgotten toggle file...
Commit Description:
* add forgotten toggle file
* main/submission changed to bootstrap
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/toggle.js.haml
| 12 lines
| 413 B
| text/x-haml
| HamlLexer
|
r559 | :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'}"); | ||||