浏览代码

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


正在加载...
取消
保存