Commit 44b1fcc356e6a39001c6e00451c6cc516f4725e0
Exists in
master
and in
1 other branch
Merge pull request #611 from zhekanax/master
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() |