mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#17843: Added check all option to comments page and others
This commit is contained in:

committed by
Sebastien Ros

parent
f59a071251
commit
1f9f39e8ba
@@ -51,7 +51,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="checkbox"> ↓</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"> </th>
|
||||
|
@@ -52,7 +52,7 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</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>
|
||||
|
@@ -44,7 +44,7 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</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>
|
||||
|
@@ -46,7 +46,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</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"> </th>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</th>
|
||||
<th scope="col"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
|
@@ -48,7 +48,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</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"> </th>
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<col id="Edit" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th scope="col"> ↓@*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>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</th>
|
||||
<th scope="col"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
|
@@ -44,7 +44,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> ↓</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>
|
||||
|
@@ -43,7 +43,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="checkbox"> ↓</th>
|
||||
<th scope="col" class="checkbox"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"> </th>
|
||||
<th scope="col" class="actions"> </th>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="checkbox"> ↓</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"> </th>
|
||||
|
@@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user