Skip to content

Commit

Permalink
views/CrashGroup: fix "delete collections" button visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixaill committed Jul 2, 2018
1 parent e766bb2 commit f562d81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion protected/views/crashGroup/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@
$('body').on('click', ':checkbox', function(e)
{
var totalSelected = 0;
$("input[name='DeleteRows\[\]']").each(function() {if($(this).attr('checked')) totalSelected++;});
$("input[name='DeleteRows\[\]']").each(function()
{
if(this['checked']==true)
totalSelected++;
}
);
if(totalSelected==0)
$("#delete_selected").css('visibility', 'hidden');
Expand Down

0 comments on commit f562d81

Please sign in to comment.