Commit 1dcd4a4ca4bea979b51e03fed2c0e313abf16fa4
1 parent
a4da009c
Exists in
master
and in
1 other branch
fixing select all problems checkbox when searching
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/assets/javascripts/errbit.js
@@ -70,7 +70,7 @@ $(function() { | @@ -70,7 +70,7 @@ $(function() { | ||
70 | panel.show(); | 70 | panel.show(); |
71 | } | 71 | } |
72 | 72 | ||
73 | - function toggleProblemsCheckboxes() { | 73 | + window.toggleProblemsCheckboxes = function() { |
74 | var checkboxToggler = $('#toggle_problems_checkboxes'); | 74 | var checkboxToggler = $('#toggle_problems_checkboxes'); |
75 | 75 | ||
76 | checkboxToggler.on("click", function() { | 76 | checkboxToggler.on("click", function() { |
app/views/problems/search.js.haml
1 | $("#problem_table").empty().append("#{escape_javascript(render('problems/table', :problems => problems))}"); | 1 | $("#problem_table").empty().append("#{escape_javascript(render('problems/table', :problems => problems))}"); |
2 | $("#flash-messages").empty() | 2 | $("#flash-messages").empty() |
3 | +toggleProblemsCheckboxes() |