test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • avexa Friend
    #204619

    I have an issue on website – when I search for the first time, everything allright, but on results page I cannot search anymore – there is a javascript error:

    Uncaught TypeError: undefined is not a function?Itemid=101&isc=1&searchword=ekologie:966
    (anonymous function)
    g.condition.i
    m
    mootools-core.js:118
    mootools-core.js:119

    If im not mistaken it points on this function:
    //validate startdate and enddate before submit form
    function validateDateRange(obj){
    if(obj.id == ‘sdate_149’ || obj.id == ‘edate_149’){
    var sDate = $(‘jak2filter149’).getElement(‘#sdate_149’).get(‘value’);
    var eDate = $(‘jak2filter149’).getElement(‘#edate_149’).get(‘value’);
    if(sDate != ” && eDate != ”){
    if(isDate(sDate) && isDate(eDate)){
    obj.removeClass(‘date-error’);
    $(‘jak2filter-form-149’).fireEvent(‘submit’);
    }
    else{
    obj.addClass(‘date-error’);
    }
    }
    }
    else{
    $(‘jak2filter-form-149’).fireEvent(‘submit’);
    }
    }

    Result page is for example http://jctt.avexa.cz/component/jak2filter/?Itemid=101&isc=1&xf_1=4

    Thank you for help in advance

    Mo0nlight Moderator
    #563213

    Hello avexa,

    I think it’s due to the conflict between the symbol of JS library.

    You can try to change the $() sign to document.id() and see what happens afterward.

    or you can pm me the ftp info so i could investigate the problem further.

    Mo0nlight Moderator
    #563402

    Hi avexa,

    I had fix the error on the site, kindly take a look and confirm

    I edited the files.
    /modules/mod_jak2filter/assets/js/jak2filter.js
    /modules/mod_jak2filter/tmpl/default.php

    avexa Friend
    #563547

    Now it seems that everything is allright. Thanks a lot! 🙂

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

This topic contains 4 replies, has 2 voices, and was last updated by  avexa 9 years, 9 months ago.

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