add types to the input fields
This commit is contained in:
parent
c1d4b1c649
commit
6f7da1dd5b
1 changed files with 7 additions and 6 deletions
|
@ -8,19 +8,19 @@
|
|||
%th Issuer
|
||||
%th Message
|
||||
%tr
|
||||
%td.bound.input-listen
|
||||
%td.bound.input-listen{ 'data-input-type': 'date-range' }
|
||||
%input.lower-bound{type: 'date', placeholder: 'after'}
|
||||
= "<= Time <="
|
||||
%input.upper-bound{type: 'date', placeholder: 'before'}
|
||||
%td.bound.input-listen
|
||||
%td.bound.input-listen{ 'data-input-type': 'number-range' }
|
||||
%input.lower-bound{type: 'number', placeholder: 'lower', class: 'pure-u-1-5'}
|
||||
= "<= Amount <="
|
||||
%input.upper-bound{type: 'number', placeholder: 'upper', class: 'pure-u-1-5'}
|
||||
%td.input-listen
|
||||
%input{type: 'text', placeholder: 'Filter on Peer'}
|
||||
%td.input-listen
|
||||
%td.input-listen{ 'data-input-type': 'text' }
|
||||
%input{type: 'text', placeholder: 'Filter on Issuer'}
|
||||
%td.input-listen
|
||||
%td.input-listen{ 'data-input-type': 'text' }
|
||||
%input{type: 'text', placeholder: 'Filter on Peer'}
|
||||
%td.input-listen{ 'data-input-type': 'text' }
|
||||
%input{type: 'text', placeholder: 'Filter on Message'}
|
||||
%tbody
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
|||
} else {
|
||||
value = $(this).val()
|
||||
}
|
||||
value = td.attr('data-input-type') + ':' + value
|
||||
if(column.search() !== value) {
|
||||
column.search(value).draw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue