-
Notifications
You must be signed in to change notification settings - Fork 6
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
Modify the paginationCollection to accept jugglingdb option #1
Comments
I'm not sure line "opts.order||'1';" is correct, because order param On Thu, Apr 26, 2012 at 4:52 PM, lforge <
Thanks, |
In this case, the order field data are passed into the routine. So in the controller, you will do this:
So the '1' default should generate the SQL to be "order by 1" by default. I think that it should be ok. But I may be missing something here though. I will give it a shot on forking it. Thanks. |
I have submitted a pull request for my change. If this works, we can close this issue. Thanks. |
FYI, when I use your pagination routine, I realize that it is not processing the other jugglingdb option such as order, where. So I have customized your code a bit by at least accepting the order option:
In the index.js file, I have made the following change:
Do you think that you can add the support of where option and make this as part of your main code then? I am not too familiar with github just yet. Perhaps I can fork this and add this change for you? thanks.
Thanks.
The text was updated successfully, but these errors were encountered: