1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-02 14:52:50 +02:00
Commit graph

6 commits

Author SHA1 Message Date
Max Guglielmi 9858ac84c1 Fixed unit tests 2017-06-14 22:12:44 +10:00
Max Guglielmi 11e15f0482 Enforcing eslint rule 2017-05-25 13:51:44 +10:00
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
Max Guglielmi 0d58349432 Refactored types module 2016-05-15 12:56:12 +10:00
Max Guglielmi 8c2108b3ab Added unit tests 2016-04-08 17:43:55 +02:00
Max Guglielmi a62a41cbc4 Added hash unit tests 2016-03-20 22:44:41 +11:00