瀏覽代碼

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

pull/3/head
Adrian Short 14 年之前
父節點
當前提交
10b118f61a
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. +1
    -1
      app.rb
  2. +1
    -0
      views/servicepayments.haml

+ 1
- 1
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"]


+ 1
- 0
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


Loading…
取消
儲存