From 10b118f61a30f3135a092f495736fe8bf2612b72 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 17 Jun 2010 09:02:27 +0100 Subject: [PATCH] =?UTF-8?q?Added=20=C2=A320,000=20payment=20filter=20to=20?= =?UTF-8?q?payments=20by=20suppliers=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.rb | 2 +- views/servicepayments.haml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.rb b/app.rb index cf3545a..49eca12 100644 --- a/app.rb +++ b/app.rb @@ -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"] diff --git a/views/servicepayments.haml b/views/servicepayments.haml index a64969b..0b37010 100644 --- a/views/servicepayments.haml +++ b/views/servicepayments.haml @@ -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