mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update JS "check all" logic for jquery upgrade, fixes #4619
This commit is contained in:
parent
19cf129fe3
commit
214572e535
2 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
|
||||
|
||||
HEAD
|
||||
---------
|
||||
|
||||
- Fix "check all" JS logic in Web UI [#4619]
|
||||
|
||||
6.1.0
|
||||
---------
|
||||
|
||||
|
|
|
@ -24,12 +24,7 @@ $(function() {
|
|||
}
|
||||
|
||||
$(document).on('click', '.check_all', function() {
|
||||
var checked = $(this).attr('checked');
|
||||
if (checked == 'checked') {
|
||||
$('input[type=checkbox]', $(this).closest('table')).attr('checked', checked);
|
||||
} else {
|
||||
$('input[type=checkbox]', $(this).closest('table')).removeAttr('checked');
|
||||
}
|
||||
$('input[type=checkbox]', $(this).closest('table')).prop('checked', this.checked);
|
||||
});
|
||||
|
||||
$(document).on("click", "[data-confirm]", function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue