Skip to content

Commit

Permalink
agregar boton de emergencias, close #29
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjcsr committed Apr 29, 2014
1 parent b250944 commit dadd8be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions app/assets/javascripts/places.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ function getCentros(lat, lng, busqueda) {
prom.done(onGetMapaSccess);
}

function toggleUrgencias(checked) {
if ( checked )
getCentros(0,0,"urgencias")
else
getCentros()
}




Expand Down Expand Up @@ -129,6 +124,13 @@ $(document).ready(function() {

});

function toggleUrgencias(checked) {
if ( checked )
getCentros(0,0,"urgencias")
else
getCentros()
}

function onMapLocationFound(e){
if (centralmarker != "") {
mapa.removeLayer(centralmarker)
Expand Down
2 changes: 1 addition & 1 deletion app/views/places/mapa.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
= text_field_tag :pregunta, nil,placeholder: "condones, urgencias o tu direccion dirección"
= submit_tag 'Buscar'
= check_box_tag "urgencias"
Urgencias
Emergencias
#map


Expand Down
2 changes: 1 addition & 1 deletion spec/requests/place_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
it { should have_css('div#map') }
it { should have_title("#{titulo_base}") }
it { should have_field('pregunta')}
it { should have_content('Urgencias')}
it { should have_content('Emergencias')}
end
end

0 comments on commit dadd8be

Please sign in to comment.