opencart/opencart — pull request #222 by Ictinus (2012-10-31 10:43:10+00:00)
Title: Display preference of list or grid is not remembered between sessions.

Add jquery.total-storage.min.js to provide an integrated localStorage and cookie solution. (https://github.com/jarednova/jquery-total-storage)
Modfiy the 'display' .cookie calls to use .totalStorage
This makes the list/grid display option non-expiring and remembered from session to session.
Small added bonus, the cookie for display doesn't get sent to the server.