mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-07 00:12:25 +02:00
fb2f201f29
You'll notice a mild asymmetry in how hash was saved vs retrieved. The retrieval was: JSON.parse(decodeUrlComponent(hash)) The save was: JSON.stringify(hash) I modified it to: JSON.stringify(encodeUrlComponent(hash)) The reason I noticed this is in one of my apps, I wanted to be able to copy/share a stateful filter URL. However without the url encoding, those auto-parsers of URLs were missing the full filter. TESTING CONDUCTED: 1. Updated the Hash unit tests to both parse the encoded string, as well as generate it. 2. Ran "grunt", which has built/tested/jslinted the code. |
||
---|---|---|
.. | ||
default | ||
mytheme | ||
skyblue | ||
blank.png | ||
btn_clear_filters.png | ||
btn_filter.png | ||
btn_first_page.gif | ||
btn_last_page.gif | ||
btn_next_page.gif | ||
btn_previous_page.gif | ||
downsimple.png | ||
icn_clp.png | ||
icn_exp.png | ||
icn_filter.gif | ||
icn_filterActive.gif | ||
upsimple.png |