1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-02 14:02:31 +02:00
TableFilter/src
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
..
extensions More desensive coding in sort feature 2016-06-19 15:07:49 +10:00
modules URL Encode State Hash 2016-08-22 09:31:03 -07:00
array.js Refactored dom module 2016-05-25 17:31:53 +10:00
const.js Initial commit 2016-06-10 23:03:46 +10:00
cookie.js Initial commit 2016-07-02 20:25:23 +10:00
date.js Refactored dom module 2016-05-25 17:31:53 +10:00
dom.js Refactored dom module 2016-05-25 17:31:53 +10:00
emitter.js Removed unused TableFilter properties, added eslint rule 2016-05-31 19:22:21 +10:00
event.js Refactored Event module 2016-06-02 14:13:56 +10:00
feature.js More desensive coding in sort feature 2016-06-19 15:07:49 +10:00
helpers.js Added tests for searching numeric columns with strings 2016-07-30 17:59:08 +10:00
root.js Added root module 2016-05-08 15:26:52 +10:00
sort.js Refactored dom module 2016-05-25 17:31:53 +10:00
string.js Killed the nbVisibleRows property on TableFilter 2016-05-26 14:36:36 +10:00
tablefilter.js Additional comments in TableFilter 2016-08-17 17:31:41 +10:00
types.js Refactored types module 2016-05-15 12:56:12 +10:00