Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tommcgee

    (@tommcgee)

    More specifically, it could be the updated version of underscores in WP 4.5. It changed the .template function so that it returns a function instead of a variable, but the DH Press function that calls it is looking for a variable.

    var labelText = dhpServices.compileText('#dhp-script-lbl-filter', { label: dhpCardsView.currentFilter });

    in dhp-cards-view.js line 234.

    Thread Starter tommcgee

    (@tommcgee)

    Partial fix. Modify /wp-content/plugins/dh-press/js/dhp-services.js

    Line 1010 change

    var template = _.template(baseText, vars);
    return template;

    to

    var template = _.template(baseText);
    return template({'label':vars.label});

    That addresses getting the filters up and running again. There’s still an issue with making the contents of #legends change/function.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript Error on Filters’ is closed to new replies.