overwriting js method

karinep

New Member
Hi everyone,

I'm writing a list plugin and I want to overwrite fabrik autocomplete search() js method to another function in my plugin list js file, is there anyway to do that? I tried:
Code:
Fabrik.addEvent('fabrik.autocomplete.search', function () {
       self.search();
}.bind(this));
But didn't work.. Any ideas how I can do this?


Thanks
Karine
 
You could simply just override the function directly. Find the actual function name in the fabrik javascript, let's say it is fabrikAutoCompleteSearch thenjust do this:

fabrikAutoCompleteSearch = search();
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top