Private GIT

Skip to content
Snippets Groups Projects
Commit 04f55415 authored by Alexis Tyler's avatar Alexis Tyler
Browse files

fix broken js when there's no failed downloads

parent bcd84178
Branches
Tags
No related merge requests found
...@@ -22,6 +22,7 @@ $(document).ready(function(){ ...@@ -22,6 +22,7 @@ $(document).ready(function(){
}); });
}); });
if($('.removeCheck').length){
$('.removeCheck').forEach(function(name) { $('.removeCheck').forEach(function(name) {
var lastCheck = null; var lastCheck = null;
$(name).click(function(event) { $(name).click(function(event) {
...@@ -44,4 +45,6 @@ $(document).ready(function(){ ...@@ -44,4 +45,6 @@ $(document).ready(function(){
}); });
}); });
}); });
}
}); });
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
</tfoot> </tfoot>
<tbody> <tbody>
% for hItem in failedResults: % for hItem in failedResults:
<% curRemove = "<input type=\"checkbox\" class=\"removeCheck\" id=\"remove-"+hItem["release"]+"\" />" %>
<tr> <tr>
<td class="nowrap">${hItem["release"]}</td> <td class="nowrap">${hItem["release"]}</td>
<td align="center"> <td align="center">
...@@ -65,7 +64,7 @@ ...@@ -65,7 +64,7 @@
<img src="${srRoot}/images/providers/missing.png" width="16" height="16" alt="missing provider" title="missing provider"/> <img src="${srRoot}/images/providers/missing.png" width="16" height="16" alt="missing provider" title="missing provider"/>
% endif % endif
</td> </td>
<td align="center">${curRemove}</td> <td align="center"><input type="checkbox" class="removeCheck" id="remove-${hItem["release"]}" /></td>
</tr> </tr>
% endfor % endfor
</tbody> </tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment