1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
437 stars 177 forks source link

nice URL deeplink #316

Open rolenczattila opened 5 years ago

rolenczattila commented 5 years ago

Hi Rosehip,

I would ask you to help me in my problem below. I use your jplist code and I would like instead of

the following url

The "index.php?value=colors" is solved with .htaccess URL Rewrite, and "-" is also solved (change delimiter value in main js) but I cannot change the jplist filter parameters as a nice deeplink.

I have found the following part of the code in the "jplist.filter-toggle-bundle.min.js" file: b.prototype.getDeepLink = function() { ... a = this.name + this.options.delimiter0 + "pathGroup=" + d
} return a;

Well if I provide only the value "a=this.name", it results the correct url for me but not the code because in this case refreshing the page, the previous checked state is not checked anymore so I think the parameter handover is somewhere not correct.

Could you help me where the code waits for the "a" variable with the full value (this.name + this.options.delimiter0 + "pathGroup=" + d), and what modification should be carried out?

I hope it is only a little change in your code.

Thanks your reply and help so very much,

BR, Atti