Tuesday, 15 May 2012

javascript - Jplit reset specific filter(s) -


Therefore, I am using a plugin to filter a list of flats and send me something to reset Required at point (or more) is a specific filter point, there is no API that we can use to control the plugin externally.

To reset the code used for the reset button to all the defaults:

  (function () {var d = function (b) {b} . $ Control ("click", function () {b.observer.trigger (b.observer.events.unknownStatusesChanged, [! 0])}), e = function (b) {d (b); return jQuery .extend (this, b)}; jQuery.fn.jplist.ui.controls.Reset = function (B) {new E (B)}; jQuery.fn.jplist.controlTypes.reset = {className: "Reset" , the option: {}}}) ();  

I have to admit how it does not work perfectly, but I have done a quick test with it:

  jQuery (' # Some-id-button '). ('Click', function () {b.observer.trigger (b.observer.events.unknownStatusesChanged, [! 0])});  

And it resets all the filters from a particular element.

The question is, to target specific arguments, some arguments (ID, class) of them?


No comments:

Post a Comment