Missing configuration causes JS issues
Bug #1896607 reported by
Stephen Finucane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstackdocstheme |
Fix Released
|
Low
|
Stephen Finucane |
Bug Description
There's a number of configuration options required to enable certain functionality, such as 'openstack_
Uncaught ReferenceError: bugProject is not defined
<anonymous> http://
Changed in openstack-doc-tools: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: openstackdocstheme |
summary: |
- Missing configuration causes failure to build, JS issues + Missing configuration causes JS issues |
Changed in openstack-doc-tools: | |
assignee: | nobody → Stephen Finucane (stephenfinucane) |
status: | Confirmed → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/753285 /git.openstack. org/cgit/ openstack/ openstackdocsth eme/commit/ ?id=8e6b9c52446 0edf1c3127fb186 1acd13b17455c3
Committed: https:/
Submitter: Zuul
Branch: master
commit 8e6b9c524460edf 1c3127fb1861acd 13b17455c3
Author: Stephen Finucane <email address hidden>
Date: Tue Sep 22 11:32:23 2020 +0100
js: Don't attempt to set bug, PDF links without configuration
Generating both the bug link and PDF download link requires some bug_project' pdf_link' config options must be set. If these are not
configuration in 'conf.py': specifically, the 'openstack_
and 'openstack_
present, the template doesn't include the relevant tags, which means
attempts to look these up via 'getElementById' will return 'null',
causing ugly tracebacks like so in the console.
Uncaught ReferenceError: bugProject is not defined localhost: 8000/search. html?q= usage:395
<anonymous> http://
Simply surround these blocks with the same conditionals as the template,
avoiding the issue entirely.
Change-Id: I08ef0fc6c7ebd2 c0e7ba89bc42cc9 2176fec8ab8
Signed-off-by: Stephen Finucane <email address hidden>
Closes-Bug: #1896607