Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • attex Friend
    #970457

    When i click outside the autocomplete list in extra field (textfield), then the autocomplete does not close.
    Any help?

    Mo0nlight Moderator
    #970911

    Hi.

    You could do this.

    Open the file : modules/mod_jak2filter/helper.php

    Look for the code:

    $html .= '
                                var completer_' . $this->module->id . '_' . $fieldname.' = new Autocompleter.Request.JSON(
                                    document.id(\''.$id.'\'), 
                                    \''.$url.'\', 
                                    {\'minLength\': 3, \'postVar\': \''.$id.'\'}
                                );  ';

    Change to:

                    $html .= '<script type="text/javascript">
                                var completer_' . $this->module->id . '_' . $fieldname.' = new Autocompleter.Request.JSON(
                                    document.id(\''.$id.'\'), 
                                    \''.$url.'\', 
                                    {\'minLength\': 3, \'postVar\': \''.$id.'\'}
                                ); 
                                jQuery(document).on(\'click\', function(event) {
                                    var container = jQuery(\'ul.autocompleter-choices\');
                                    if (!container.is(event.target) && container.has(event.target).length === 0)
                                    {
                                        completer_' . $this->module->id . '_' . $fieldname.'.hideChoices();
                                    }
                                });
                                ';

    Regards.

    attex Friend
    #971314

    still i cannot see your answer
    in this topic says "Viewing 1 post (of 1 total)"

    attex Friend
    #972419

    Problem solved!
    Thanks a lot

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  attex 8 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum