• Resolved slackarse

    (@slackarse)


    Hi,

    The latest update (PublishPress Future Version 3.0.5) causes a JavaScript error on pages unrelated to scheduling posts. At the moment, it doesn’t appear to affect anything else on the pages.

    Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
    at toggleCategorySelection ((index):142:37)
    at init ((index):152:17)
    at HTMLDocument. ((index):137:17)
    at e (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3-RC2:2:26990)
    at t (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3-RC2:2:27292)
    function toggleCategorySelection(element) {
      if ($(element).val().indexOf('category') !== -1) {
        $('#expired-category-selection').show();
        $('#expired-category-wrapper').show();
      } else {
        $('#expired-category-selection').hide();
        $('#expired-category-wrapper').hide();
      }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript Error’ is closed to new replies.