digitalmars.D.bugs - [Issue 3840] New: Jump to: section in the docs should be sorted
- d-bugmail puremagic.com (50/50) Feb 21 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3840
- d-bugmail puremagic.com (9/9) Feb 22 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3840
- d-bugmail puremagic.com (10/10) Mar 08 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3840
http://d.puremagic.com/issues/show_bug.cgi?id=3840
Summary: Jump to: section in the docs should be sorted
Product: D
Version: 2.041
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: destructionator gmail.com
09:01:06 PST ---
The Jump To: section on the phobos 2 docs could be made a lot easier by sorting
the anchors listed alphabetically.
I looked at the html source and noticed that they are generated by some
Javascript.
Here's a replacement for the function in there now that does this sorting:
<script>
function listanchors()
{
var a = document.getElementById("quickindex");
if (!a) return;
var newText = "";
var hash = new Array;
var n = 0;
var values = new Array;
// List all anchors.
for (var i = 0; i < document.anchors.length; i++)
{
var a = document.anchors[i];
var text = a.name;
if (hash[text] > 0) continue;
hash[text] = 1;
values[n++] = a.name
}
values.sort();
for(var i = 0; i < values.length; i++) {
var a = values[i];
+ a + '</span></a> ';
}
if (newText != "") newText = "<p><b>Jump to:</b> " + newText + '</p>';
var a = document.getElementById("quickindex");
a.innerHTML = newText;
}
</script>
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 21 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3840
Adam D. Ruppe <destructionator gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 22 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3840
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
22:24:17 PST ---
Fixed dmd 1.057 and 2.041
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 08 2010









d-bugmail puremagic.com 