diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 0a16fc1..c153e1f 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -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(); }