Created
July 15, 2011 17:18
-
-
Save ericf/1085095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| handlePlace : function (req) { | |
| var params = req.params, | |
| page = (parseInt(params.page, 10) || 1) - 1; | |
| // redirect crufty URL to a clearer one | |
| if (params.page && page <= 0) { | |
| return this.replace('/place/' + params.id + '/'); | |
| } | |
| this.place.set('id', params.id); | |
| this.set('photosPage', page); | |
| this.showGridView(); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment