Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Disable onclick #97

Open
akn57 opened this issue Apr 25, 2018 · 1 comment
Open

Disable onclick #97

akn57 opened this issue Apr 25, 2018 · 1 comment

Comments

@akn57
Copy link

akn57 commented Apr 25, 2018

Hi, I would like to only create a list of data without any onclick or custom actions,

I have reviewed howto page, but didn't see any JQuery Options listed to this effect.

Also, I have seen the "Custom Event" section below, but don't understand what to change in the code.

CUSTOM EVENT

Name

onResultClick
onResultEnter
onAjaxComplete

Any assistance would be greatly appreciated. I have donated from time to time over the past couple of years.

Thank you,

AKN57

@iranianpep
Copy link
Owner

Hi,

As long as you don't specify any events you don't get them:

jQuery(".mySearch").ajaxlivesearch({
    loaded_at: <?php echo time(); ?>,
    token: <?php echo "'" . $handler->getToken() . "'"; ?>,
    max_input: <?php echo Config::getConfig('maxInputLength'); ?>
});

Compare the example above with the one in readme. Is this what you're looking for?

Cheers,
Ehsan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants