mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 15:05:38 +00:00
When dragging is enabled the cursor is now the move cursor when over a row
This commit is contained in:
parent
3b19642c26
commit
48996eb6ee
@ -24,7 +24,6 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Sort order toggle
|
||||
$sortOrderToggle=new GridField_FormAction($gridField, 'sortablerows_toggle', 'Allow drag and drop re-ordering', 'saveGridRowSort', null);
|
||||
$sortOrderToggle->addExtraClass('sortablerows_toggle');
|
||||
|
@ -4,4 +4,8 @@
|
||||
|
||||
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cms table.ss-gridfield-table.dragSorting tbody tr td {
|
||||
cursor: move;
|
||||
}
|
@ -4,6 +4,13 @@
|
||||
var refCheckbox=$(this);
|
||||
|
||||
var gridField=$(this).getGridField();
|
||||
|
||||
if($(this).is(':checked')) {
|
||||
gridField.find('table').addClass('dragSorting');
|
||||
}else {
|
||||
gridField.find('table').removeClass('dragSorting');
|
||||
}
|
||||
|
||||
gridField.find('tbody').sortable({
|
||||
disabled: ($(this).is(':checked')==false),
|
||||
helper: function(e, ui) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user