mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Re-enabled check for if the sort checkbox is enabled
Re-enabled removal code if the page sort does not have a previous and/or next Spacing corrections
This commit is contained in:
parent
fae85f04c1
commit
089d4e796d
@ -122,13 +122,13 @@
|
||||
var sortableCheckbox=gridField.find('.gridfield-sortablerows input');
|
||||
var self=$(this);
|
||||
|
||||
/*if($(this).hasClass('sortablerows-prev-page') && gridField.find('.ss-gridfield-previouspage').is(':disabled')) {
|
||||
if($(this).hasClass('sortablerows-prev-page') && gridField.find('.ss-gridfield-previouspage').is(':disabled')) {
|
||||
$(this).remove();
|
||||
return;
|
||||
}else if($(this).hasClass('sortablerows-next-page') && gridField.find('.ss-gridfield-nextpage').is(':disabled')) {
|
||||
$(this).remove();
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
|
||||
$(this).droppable({
|
||||
disabled: $(this).is(':disabled'),
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%-- if $Checked --%>
|
||||
<% if $Checked %>
|
||||
<div class="gridfield-sortablerows-movepage" colspan="$Colspan">
|
||||
<a href="" class="sortablerows-psort-arrow sortablerows-prev-page"><i><%t GridFieldSortableRows.PREVIOUS '_Move to Previous Page' %></i></a>
|
||||
|
||||
<a href="" class="sortablerows-psort-arrow sortablerows-next-page"><i><%t GridFieldSortableRows.NEXT '_Move to Next Page' %></i></a>
|
||||
</div>
|
||||
<%-- end_if --%>
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user