tigeorgia / shenmartav

Website for shenmartav.ge
GNU General Public License v2.0
3 stars 9 forks source link

On /who , the selected MP profile should be remembered when switching languages #122

Closed ddohler closed 12 years ago

ddohler commented 12 years ago

Currently, when switching languages, the selected MP is forgotten and the page reverts to the default.

sebastiantransparency commented 12 years ago

you mean: go to /who, click on a representative, click on the language switcher in the navigation and then the previously selected representative doesn't show up? that's not a quicky, because the state change (selected representative) is not reflected in the URL. but i guess it can be solved by placing some information in the user's cookie.

ddohler commented 12 years ago

Yep, that's exactly the issue. I think there may be another way besides cookies though; newer browsers accept push-state, but I'm not sure how that would interact with Django. But yeah, I understand that this may take a while.

sebastiantransparency commented 12 years ago

done. i actually did a similar thing when asking questions. most of the time i struggled to figure out some javascript code because i had forgotten about a certain code path.

ddohler commented 12 years ago

Cool, I noticed it was working before reading this. Nice!