mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 15:05:38 +00:00
MINOR: Added label to the "Allow Drag and Drop" text so that clicking this will activate the checkbox
MINOR: Fixed line-height issues added in beta 3
This commit is contained in:
parent
4c77fff713
commit
5f4a217630
@ -77,7 +77,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
Requirements::javascript('SortableGridField/javascript/GridFieldSortableRows.js');
|
||||
|
||||
|
||||
$args = array('Colspan' => count($gridField->getColumns()));
|
||||
$args = array('Colspan' => count($gridField->getColumns()), 'ID' => $gridField->ID());
|
||||
|
||||
return array('header' => $forTemplate->renderWith('GridFieldSortableRows', $args));
|
||||
}
|
||||
|
@ -2,6 +2,14 @@
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows input[type=checkbox] {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows {
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows button {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<tr>
|
||||
<th class="extra sortablerowsheading" colspan="$Colspan">
|
||||
<div class="gridfield-sortablerows">
|
||||
<input type="checkbox" value="1"$Checked/> <%t GridFieldSortableRows.ALLOW_DRAG_DROP "_Allow drag and drop re-ordering" %>
|
||||
<input type="checkbox" id="{$ID}_AllowDragDropCheck" value="1"$Checked/> <label for="{$ID}_AllowDragDropCheck"><%t GridFieldSortableRows.ALLOW_DRAG_DROP "_Allow drag and drop re-ordering" %></label>
|
||||
$SortableToggle
|
||||
$PagenatorToggle
|
||||
$SortToPage
|
||||
|
Loading…
x
Reference in New Issue
Block a user