mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
FIX Fixed unload modal in GridFieldConfigurablePaginator
This commit is contained in:
parent
76541b27f2
commit
088e7f16a8
@ -290,33 +290,34 @@ class GridFieldConfigurablePaginator extends GridFieldPaginator
|
|||||||
'title' => 'First',
|
'title' => 'First',
|
||||||
'args' => array('first-shown' => 1),
|
'args' => array('first-shown' => 1),
|
||||||
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-double-left '
|
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-double-left '
|
||||||
. 'ss-gridfield-firstpage',
|
. 'ss-gridfield-pagination-action ss-gridfield-firstpage',
|
||||||
'disable-previous' => ($this->getCurrentPage() == 1)
|
'disable-previous' => ($this->getCurrentPage() == 1)
|
||||||
),
|
),
|
||||||
'prev' => array(
|
'prev' => array(
|
||||||
'title' => 'Previous',
|
'title' => 'Previous',
|
||||||
'args' => array('first-shown' => $arguments['first-shown'] - $this->getItemsPerPage()),
|
'args' => array('first-shown' => $arguments['first-shown'] - $this->getItemsPerPage()),
|
||||||
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-left '
|
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-left '
|
||||||
. 'ss-gridfield-previouspage',
|
. 'ss-gridfield-pagination-action ss-gridfield-previouspage',
|
||||||
'disable-previous' => ($this->getCurrentPage() == 1)
|
'disable-previous' => ($this->getCurrentPage() == 1)
|
||||||
),
|
),
|
||||||
'next' => array(
|
'next' => array(
|
||||||
'title' => 'Next',
|
'title' => 'Next',
|
||||||
'args' => array('first-shown' => $arguments['first-shown'] + $this->getItemsPerPage()),
|
'args' => array('first-shown' => $arguments['first-shown'] + $this->getItemsPerPage()),
|
||||||
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-right ss-gridfield-nextpage',
|
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-right '
|
||||||
|
.'ss-gridfield-pagination-action ss-gridfield-nextpage',
|
||||||
'disable-next' => ($this->getCurrentPage() == $arguments['total-pages'])
|
'disable-next' => ($this->getCurrentPage() == $arguments['total-pages'])
|
||||||
),
|
),
|
||||||
'last' => array(
|
'last' => array(
|
||||||
'title' => 'Last',
|
'title' => 'Last',
|
||||||
'args' => array('first-shown' => ($this->getTotalPages() - 1) * $this->getItemsPerPage() + 1),
|
'args' => array('first-shown' => ($this->getTotalPages() - 1) * $this->getItemsPerPage() + 1),
|
||||||
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-double-right '
|
'extra-class' => 'btn btn-secondary btn--hide-text btn-sm font-icon-angle-double-right '
|
||||||
. 'ss-gridfield-lastpage',
|
. 'ss-gridfield-pagination-action ss-gridfield-lastpage',
|
||||||
'disable-next' => ($this->getCurrentPage() == $arguments['total-pages'])
|
'disable-next' => ($this->getCurrentPage() == $arguments['total-pages'])
|
||||||
),
|
),
|
||||||
'pagesize' => array(
|
'pagesize' => array(
|
||||||
'title' => 'Page Size',
|
'title' => 'Page Size',
|
||||||
'args' => array('first-shown' => $arguments['first-shown']),
|
'args' => array('first-shown' => $arguments['first-shown']),
|
||||||
'extra-class' => 'ss-gridfield-pagesize-submit'
|
'extra-class' => 'ss-gridfield-pagination-action ss-gridfield-pagesize-submit'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user