#17843: Added check all option to comments page and others

This commit is contained in:
Richard Garside
2013-08-06 11:11:35 +01:00
committed by Sebastien Ros
parent f59a071251
commit 1f9f39e8ba
12 changed files with 16 additions and 12 deletions

View File

@@ -51,7 +51,7 @@
<table class="items">
<thead>
<tr>
<th scope="col" class="checkbox">&nbsp;&darr;</th>
<th scope="col" class="checkbox"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Alias")</th>
<th scope="col">@T("Route")</th>
<th scope="col">&nbsp;</th>

View File

@@ -52,7 +52,7 @@
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Status")</th>
<th scope="col">@T("Author")</th>
<th scope="col">@T("Comment")</th>

View File

@@ -44,7 +44,7 @@
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Status")</th>
<th scope="col">@T("Author")</th>
<th scope="col">@T("Comment")</th>

View File

@@ -46,7 +46,7 @@
<table class="items">
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Title")</th>
<th scope="col">@T("Content Type")</th>
<th scope="col">&nbsp;</th>

View File

@@ -26,7 +26,7 @@
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col"></th>
</tr>

View File

@@ -48,7 +48,7 @@
<table class="items">
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col">@T("Creation")</th>
<th scope="col">&nbsp;</th>

View File

@@ -28,7 +28,7 @@
<col id="Edit" />
</colgroup>
<thead>
<th scope="col">&nbsp;&darr;@*todo: (heskew) something more appropriate for "this applies to the bulk actions*@</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col"></th>
</thead>

View File

@@ -24,7 +24,7 @@
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col"></th>
</tr>

View File

@@ -44,7 +44,7 @@
<table class="items">
<thead>
<tr>
<th scope="col">&nbsp;&darr;</th>
<th scope="col"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col">@T("Email")</th>
<th scope="col">@T("Actions")</th>

View File

@@ -43,7 +43,7 @@
<table class="items">
<thead>
<tr>
<th scope="col" class="checkbox">&nbsp;&darr;</th>
<th scope="col" class="checkbox"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Name")</th>
<th scope="col">&nbsp;</th>
<th scope="col" class="actions">&nbsp;</th>

View File

@@ -7,7 +7,7 @@
<table class="items">
<thead>
<tr>
<th scope="col" class="checkbox">&nbsp;&darr;</th>
<th scope="col" class="checkbox"><input type="checkbox" id="checkAll"/></th>
<th scope="col">@T("Worfklow Definition")</th>
<th scope="col">Blocking activities</th>
<th scope="col" class="actions">&nbsp;</th>

View File

@@ -62,7 +62,7 @@
$(this).closest("form").find(".apply-bulk-actions-auto:first").click();
});
$("[itemprop~='RemoveUrl']").on("click", function (event) {
$("[itemprop~='RemoveUrl']").click(function () {
// don't show the confirm dialog if the link is also UnsafeUrl, as it will already be handled in base.js
if ($(this).filter("[itemprop~='UnsafeUrl']").length == 1) {
return false;
@@ -70,6 +70,10 @@
return confirm(confirmRemoveMessage);
});
$("#checkAll").change(function () {
$("table.items :checkbox").prop('checked', $(this).prop("checked"));
});
})(jQuery);