summaryrefslogtreecommitdiff
path: root/chimere/static
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static')
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js2
-rw-r--r--chimere/static/chimere/js/routing-widget.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index b41f516..ae74d6b 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -996,7 +996,7 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
cloned.children("#nominatim_start_label").attr('id', c_id+'_label'
).html('');
cloned.children('label[for="id_start"]').html(step_label
- ).attr('for', "");
+ ).attr('for', "").addClass('step_label');
var id_suffixes = ['_lat', '_lon', ''];
for (idx=0;idx < id_suffixes.length;idx+=1){
var suffix = id_suffixes[idx];
diff --git a/chimere/static/chimere/js/routing-widget.js b/chimere/static/chimere/js/routing-widget.js
index 043c957..34ca46c 100644
--- a/chimere/static/chimere/js/routing-widget.js
+++ b/chimere/static/chimere/js/routing-widget.js
@@ -26,16 +26,16 @@ $(document).ready(function() {
function filter_speed(transport){
$("#id_speed_div").show();
for (i=0;i<detached_speeds.length;i+=1){
- $("#id_speed").append(detached_speeds[i]);
+ $("#id_speed_div ul").append(detached_speeds[i]);
}
detached_speeds = Array();
- $("#id_speed option").each(function(){
+ $("#id_speed_div input[type=radio]").each(function(){
if(!$(this).val().match(transport) && $(this).val()){
- detached_speeds.push($(this).detach());
+ detached_speeds.push($(this).parent().parent().detach());
}
});
- $('#id_speed').val('');
- if($("#id_speed option").length == 1){
+ $('#id_speed_div').val('');
+ if($("#id_speed_div input[type=radio]").length == 1){
$("#id_speed_div").hide();
}
}