From 03dd58f8ce4024cd48291b7ce7e40fac8a9be846 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Tue, 31 Jul 2012 20:11:10 -0700 Subject: [PATCH] Fix broken links --- doc/ns3_html_theme/static/ns3_links.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/ns3_html_theme/static/ns3_links.js b/doc/ns3_html_theme/static/ns3_links.js index 0cd4e6fec..62b5e2f80 100644 --- a/doc/ns3_html_theme/static/ns3_links.js +++ b/doc/ns3_html_theme/static/ns3_links.js @@ -27,11 +27,16 @@ var ns3_api = ns3_rel + ns3_doxy + ns3_index; // The Sphinx layout template defines // var ns3_builder = "html", or "singlehtml" // so we can condition the links on single/multi-page view. -if ( (typeof ns3_builder != 'undefined') && (ns3_builder == "singlehtml") ) { - ns3_index = ns3_local + "singlehtml/" + ns3_index; - } else { - ns3_index = ns3_local + "html/" + ns3_index; - } +if (typeof ns3_builder != 'undefined') { + if (ns3_builder == "singlehtml") { + ns3_index = ns3_local + "singlehtml/" + ns3_index; + } else { + ns3_index = ns3_local + "html/" + ns3_index; + } + else { + ns3_index = ns3_local + "html/" + ns3_index; + } + var ns3_man = ns3_rel + "manual/" + ns3_index; var ns3_mod = ns3_rel + "models/" + ns3_index;