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:
Ed Chipman 2015-09-06 20:48:10 -03:00
parent fae85f04c1
commit 089d4e796d
3 changed files with 55 additions and 55 deletions

View File

@ -122,13 +122,13 @@
var sortableCheckbox=gridField.find('.gridfield-sortablerows input'); var sortableCheckbox=gridField.find('.gridfield-sortablerows input');
var self=$(this); 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(); $(this).remove();
return; return;
}else if($(this).hasClass('sortablerows-next-page') && gridField.find('.ss-gridfield-nextpage').is(':disabled')) { }else if($(this).hasClass('sortablerows-next-page') && gridField.find('.ss-gridfield-nextpage').is(':disabled')) {
$(this).remove(); $(this).remove();
return; return;
}*/ }
$(this).droppable({ $(this).droppable({
disabled: $(this).is(':disabled'), disabled: $(this).is(':disabled'),

View File

@ -1,7 +1,7 @@
<%-- if $Checked --%> <% if $Checked %>
<div class="gridfield-sortablerows-movepage" colspan="$Colspan"> <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-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> <a href="" class="sortablerows-psort-arrow sortablerows-next-page"><i><%t GridFieldSortableRows.NEXT '_Move to Next Page' %></i></a>
</div> </div>
<%-- end_if --%> <% end_if %>