mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 12:29:04 +08:00
#17843 Made check-all feature work if there are mulitple instances of it in one page
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="checkbox"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col" class="checkbox"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</thead>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col" class="checkbox"><input type="checkbox" class="check-all"/></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"><input type="checkbox" id="checkAll"/></th>
|
||||
<th scope="col" class="checkbox"><input type="checkbox" class="check-all"/></th>
|
||||
<th scope="col">@T("Worfklow Definition")</th>
|
||||
<th scope="col">Blocking activities</th>
|
||||
<th scope="col" class="actions"> </th>
|
||||
|
||||
@@ -71,8 +71,8 @@
|
||||
return confirm(confirmRemoveMessage);
|
||||
});
|
||||
|
||||
$("#checkAll").change(function () {
|
||||
$("table.items :checkbox").prop('checked', $(this).prop("checked"));
|
||||
$(".check-all").change(function () {
|
||||
$(this).parents("table.items").find(":checkbox").prop('checked', $(this).prop("checked"));
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user