fixed unload modal in GridFieldConfigurablePaginator

This commit is contained in:
Ivo Bathke 2019-02-25 17:17:26 +01:00
parent 856fce1b8c
commit 3ccbd84f33

View File

@ -290,27 +290,28 @@ 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(