After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776964 - Menu does not work without Javascript
Menu does not work without Javascript
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.12
Other Linux
: Normal blocker
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2017-01-07 00:58 UTC by Josef Kufner
Modified: 2017-12-25 18:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
error screenshot after opening chm file generated by Doxygen 1.8.13 (31.12 KB, image/png)
2017-08-14 12:54 UTC, Erwan Y
Details

Description Josef Kufner 2017-01-07 00:58:54 UTC
Since 1.8.12 there is new main menu. It completely relies on Javascript which makes navigation unavailable for search engines and anyone without JS enabled. Also, it does not highlight the current page.

There is no good reason to use JS to render essential navigation.

Please return the old menu.
Comment 1 Dimitri van Heesch 2017-01-10 20:13:59 UTC
I'll reintroduce the old style navigation in the next git update.
To enable it set HTML_DYNAMIC_MENUS to NO in the config file.
Comment 2 Josef Kufner 2017-01-10 20:49:54 UTC
Thank you.
Comment 3 heiko.nardmann 2017-01-17 17:47:18 UTC
I also stumbled about those new menus (using 1.8.13). But on my part I get a 'ReferenceError' inside the Firefox JavaScript Konsole (and also IE) wrt. to

<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});

inside 'index.html'. It tells me

18:40:42.509 ReferenceError: $ is not defined 1 index.html:11:1
	<anonym> http://.../Doxygen/index.html:11:1

I do not get any menus, too. I'm not JS expert: is this $( ... ) really a valid JavaScript expression?
Comment 4 Josef Kufner 2017-01-17 18:14:39 UTC
$() is just a function call - see jQuery, which is likely missing.
Comment 5 Erwan Y 2017-08-14 12:48:02 UTC
on the version 1.8.12 and 1.8.13 , when i am generating a chm file
(Compiled HTML file)

There is an issue
Line: 26
Error: The value of the property '$' is null or undefined, not a Function object

Search.html and search.php is not present in the generated directory
i have no Menu too.
Comment 6 Erwan Y 2017-08-14 12:53:05 UTC

on the version 1.7.X, the menu is correct on chm mode and html mode

<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>

==> No error happenned

<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>

==> Error Happenned
(cf Screenshot)
Comment 7 Erwan Y 2017-08-14 12:54:16 UTC
Created attachment 357551 [details]
error screenshot after opening chm file generated by Doxygen 1.8.13
Comment 8 Dimitri van Heesch 2017-12-25 18:44:01 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.14. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).