From: robertall Date: Thu, 26 Jun 2008 06:15:55 +0000 (+0000) Subject: [MDL-14440] Show latlong field at list and single view in a prettier way. Merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9c1ae6fc6516d871832511062fdc6ce74428cecc;p=moodle.git [MDL-14440] Show latlong field at list and single view in a prettier way. Merged from MOODLE_19_STABLE. --- diff --git a/mod/data/field/latlong/field.class.php b/mod/data/field/latlong/field.class.php index 61f3fb2994..38666ec34f 100755 --- a/mod/data/field/latlong/field.class.php +++ b/mod/data/field/latlong/field.class.php @@ -121,7 +121,6 @@ class data_field_latlong extends data_field_base { $compasslong = "" . sprintf('%01.4f', $long) . "°E"; } $str = '
'; - $str.= "$compasslat, $compasslong"; // Now let's create the jump-to-services link $servicesshown = explode(',', $this->field->param1); @@ -141,9 +140,9 @@ class data_field_latlong extends data_field_base { 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 $str .= "\n
'; return $str;