Index: field.class.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/data/field/latlong/field.class.php,v retrieving revision 1.8 diff -u -r1.8 field.class.php --- mod/data/field/latlong/field.class.php 26 Feb 2007 06:56:07 -0000 1.8 +++ mod/data/field/latlong/field.class.php 19 Apr 2008 21:20:40 -0000 @@ -123,8 +123,6 @@ } $str = '
'; - $str.= "$compasslat, $compasslong"; - // Now let's create the jump-to-services link $servicesshown = explode(',', $this->field->param1); @@ -144,9 +142,9 @@ if(sizeof($servicesshown)==1 && $servicesshown[0]) { $str .= " $servicesshown[0] "; + ."' title='$servicesshown[0]'>$compasslat, $compasslong"; } elseif (sizeof($servicesshown)>1) { - $str .= "\n"; foreach($servicesshown as $servicename){ // Add a link to a service @@ -157,6 +155,8 @@ // NB! If you are editing this, make sure you don't break the javascript reference "previousSibling" // which allows the "Go" button to refer to the drop-down selector. $str .= "\n"; + } else { + $str.= "$compasslat, $compasslong"; } $str.= '
';