1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-07 00:12:25 +02:00
TableFilter/dist/tablefilter/style/themes
Archis Gore fb2f201f29 URL Encode State Hash
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.
2016-08-22 09:31:03 -07:00
..
default URL Encode State Hash 2016-08-22 09:31:03 -07:00
mytheme URL Encode State Hash 2016-08-22 09:31:03 -07:00
skyblue URL Encode State Hash 2016-08-22 09:31:03 -07:00
blank.png Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_clear_filters.png Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_filter.png Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_first_page.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_last_page.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_next_page.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
btn_previous_page.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
downsimple.png Fixed column widths test 2015-06-06 22:22:13 +10:00
icn_clp.png Added missing icons 2015-08-06 15:33:17 +10:00
icn_exp.png Added missing icons 2015-08-06 15:33:17 +10:00
icn_filter.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
icn_filterActive.gif Fixed column widths test 2015-06-06 22:22:13 +10:00
upsimple.png Fixed column widths test 2015-06-06 22:22:13 +10:00