diff --git a/JavaScript/NaturalDocs.js b/JavaScript/NaturalDocs.js index fd280eb..c9dea15 100644 --- a/JavaScript/NaturalDocs.js +++ b/JavaScript/NaturalDocs.js @@ -1,4 +1,4 @@ -// This file is part of Natural Docs, which is Copyright � 2003-2010 Greg Valure +// This file is part of Natural Docs, which is Copyright © 2003-2010 Greg Valure // Natural Docs is licensed under version 3 of the GNU Affero General Public License (AGPL) // Refer to License.txt for the complete details @@ -42,16 +42,6 @@ else if (agt.indexOf("khtml") != -1) browserType = "Konqueror"; } -else if (agt.indexOf("msie") != -1) - { - browserType = "IE"; - - if (agt.indexOf("msie 6") != -1) - { browserVer = "IE6"; } - else if (agt.indexOf("msie 7") != -1) - { browserVer = "IE7"; } - } - else if (agt.indexOf("gecko") != -1) { browserType = "Firefox"; @@ -261,65 +251,10 @@ function HideTip(tooltipID) { tooltip.style.visibility = "hidden"; } } - -// -// Blockquote fix for IE -// ____________________________________________________________________________ - - function NDOnLoad() { - if (browserVer == "IE6") - { - var scrollboxes = document.getElementsByTagName('blockquote'); - - if (scrollboxes.item(0)) - { - NDDoResize(); - window.onresize=NDOnResize; - }; - }; }; - -var resizeTimer = 0; - -function NDOnResize() - { - if (resizeTimer != 0) - { clearTimeout(resizeTimer); }; - - resizeTimer = setTimeout(NDDoResize, 250); - }; - - -function NDDoResize() - { - var scrollboxes = document.getElementsByTagName('blockquote'); - - var i; - var item; - - i = 0; - while (item = scrollboxes.item(i)) - { - item.style.width = 100; - i++; - }; - - i = 0; - while (item = scrollboxes.item(i)) - { - item.style.width = item.parentNode.offsetWidth; - i++; - }; - - clearTimeout(resizeTimer); - resizeTimer = 0; - } - - - /* ________________________________________________________________________________________________________ Class: SearchPanel @@ -561,20 +496,13 @@ function SearchPanel(name, mode, resultsPath) { resultsFrame = window.frames.MSearchResults; } - if (resultsPage != this.lastResultsPage || - - // Bug in IE. If everything becomes hidden in a run, none of them will be able to be reshown in the next for some - // reason. It counts the right number of results, and you can even read the display as "block" after setting it, but it - // just doesn't work in IE 6 or IE 7. So if we're on the right page but the previous search had no results, reload the - // page anyway to get around the bug. - (browserType == "IE" && hasResultsPage && - (!resultsFrame.searchResults || resultsFrame.searchResults.lastMatchCount == 0)) ) + if (resultsPage != this.lastResultsPage) { resultsFrame.location.href = resultsPageWithSearch; } - // So if the results page is right and there's no IE bug, reperform the search on the existing page. We have to check if there + // So if the results page is right, reperform the search on the existing page. We have to check if there // are results because NoResults.html doesn't have any JavaScript, and it would be useless to do anything on that page even // if it did. else if (hasResultsPage) diff --git a/Modules/NaturalDocs/Builder.pm b/Modules/NaturalDocs/Builder.pm index fc3f89e..eb39ae9 100644 --- a/Modules/NaturalDocs/Builder.pm +++ b/Modules/NaturalDocs/Builder.pm @@ -18,7 +18,7 @@ # ############################################################################### -# This file is part of Natural Docs, which is Copyright � 2003-2010 Greg Valure +# This file is part of Natural Docs, which is Copyright © 2003-2010 Greg Valure # Natural Docs is licensed under version 3 of the GNU Affero General Public License (AGPL) # Refer to License.txt for the complete details diff --git a/Modules/NaturalDocs/Builder/Base.pm b/Modules/NaturalDocs/Builder/Base.pm index d4d7be7..81c8747 100644 --- a/Modules/NaturalDocs/Builder/Base.pm +++ b/Modules/NaturalDocs/Builder/Base.pm @@ -8,7 +8,7 @@ # ############################################################################### -# This file is part of Natural Docs, which is Copyright � 2003-2010 Greg Valure +# This file is part of Natural Docs, which is Copyright © 2003-2010 Greg Valure # Natural Docs is licensed under version 3 of the GNU Affero General Public License (AGPL) # Refer to License.txt for the complete details diff --git a/Modules/NaturalDocs/Builder/HTML.pm b/Modules/NaturalDocs/Builder/HTML.pm index 86bd8bf..2e08d89 100644 --- a/Modules/NaturalDocs/Builder/HTML.pm +++ b/Modules/NaturalDocs/Builder/HTML.pm @@ -10,7 +10,7 @@ # ############################################################################### -# This file is part of Natural Docs, which is Copyright © 2003-2010 Greg Valure +# This file is part of Natural Docs, which is Copyright © 2003-2010 Greg Valure # Natural Docs is licensed under version 3 of the GNU Affero General Public License (AGPL) # Refer to License.txt for the complete details @@ -82,12 +82,10 @@ sub BuildFile #(sourceFile, parsedFile) print OUTPUTFILEHANDLE - '' . "\n\n" + '' . "\n" + . '' . "\n" . '
' - . '' - - . '' + . '' . '