Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tart pagination slider #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vkuzmov
Copy link
Contributor

@vkuzmov vkuzmov commented Jul 23, 2014

Add query string parameters as hidden inputs to tart pagination slider
form to keep them applied after changing the offset slider. Also some
trailing spaces are removed.

Add query string parameters as hidden inputs to tart pagination slider
form to keep them applied after changing the offset slider. Also some
trailing spaces are removed.
@@ -97,6 +97,10 @@ public function render()
$h->add("Showing: ".$self->offset().' - '.min($self->offset() + $self->per_page(), $self->total()).' of '.$self->total());
});
$h('span', array('style' => 'display:none'), function($h, $self){
foreach (Request::initial()->query() as $key => $value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please wrap this in an "if" as Request::initial() may be NULL (in tests)

@hkdobrev
Copy link
Contributor

@vkuzmov ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants