Explorar el Código

Added £20,000 payment filter to payments by suppliers view

pull/3/head
Adrian Short hace 14 años
padre
commit
10b118f61a
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. +1
    -1
      app.rb
  2. +1
    -0
      views/servicepayments.haml

+ 1
- 1
app.rb Ver fichero

@@ -98,7 +98,7 @@ get '/services/:slug' do
end

get '/services/:slug/payments' do
@FILTER_VALUES = %w[ 500 1000 2500 5000 10000 ]
@FILTER_VALUES = %w[ 500 1000 2500 5000 10000 20000 ]
@service = Service.first(:slug => params[:slug])
# payments_filter_min cookie persists user selection of filter value
unless @min = request.cookies["payments_filter_min"]


+ 1
- 0
views/servicepayments.haml Ver fichero

@@ -16,6 +16,7 @@
$('#min2500').click(function() { getPayments(2500, $(this)); return false; });
$('#min5000').click(function() { getPayments(5000, $(this)); return false; });
$('#min10000').click(function() { getPayments(10000, $(this)); return false; });
$('#min20000').click(function() { getPayments(20000, $(this)); return false; });
});

.grid_12


Cargando…
Cancelar
Guardar