Show More
Commit Description:
remove unnecessary gems
Commit Description:
remove unnecessary gems
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/toggle.js.haml
| 8 lines
| 309 B
| text/x-haml
| HamlLexer
|
r562 | = render partial: 'toggle_button', | |||
locals: {button_id: "#problem-avail-#{@problem.id}",button_on: @problem.available } | ||||
r559 | :plain | |||
r = $("#prob-#{@problem.id}"); | ||||
r872 | r.removeClass('bg-success'); | |||
r.removeClass('bg-danger'); | ||||
r.addClass("#{@problem.available? ? 'bg-success' : 'bg-danger-'}"); | ||||
r559 | ||||