[21922] users/mww/map.html
source_changes at macosforge.org
source_changes at macosforge.org
Sun Feb 11 11:17:54 PST 2007
Revision: 21922
http://trac.macosforge.org/projects/macports/changeset/21922
Author: mww at macports.org
Date: 2007-02-11 11:17:54 -0800 (Sun, 11 Feb 2007)
Log Message:
-----------
add more defaults for missing information
Modified Paths:
--------------
users/mww/map.html
Modified: users/mww/map.html
===================================================================
--- users/mww/map.html 2007-02-11 19:16:22 UTC (rev 21921)
+++ users/mww/map.html 2007-02-11 19:17:54 UTC (rev 21922)
@@ -39,9 +39,15 @@
function addMarker(point, name, mail, image, aux) {
var marker = new GMarker(point, icons['commiters']);
map.addOverlay(marker);
+ if ("" == mail) {
+ return;
+ }
if ("" == image) {
image="take_it_tux48.png";
}
+ if ("" == name) {
+ name = mail;
+ }
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("<img width='48' height='48' src='" + image + "'/> <a href=\"mailto:" + mail + "\"><tt>" + name + "</tt></a><br/>" + aux);
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070211/e18bf278/attachment.html
More information about the macports-changes
mailing list