diff --git a/Fila-Web/root/header.tt b/Fila-Web/root/header.tt index 650db0c..950ed78 100644 --- a/Fila-Web/root/header.tt +++ b/Fila-Web/root/header.tt @@ -67,6 +67,29 @@ function set_timeout(tempo, motivo, callback) { } } +function aplicar_filtro_servicos(text) { + var rx; + if (text) { + rx = new RegExp(text,"i"); + } + var servicos = $$('#servicos ul li ul li'); + var len = servicos.length; + var index = 0; + for (index = 0; index < len; ++index) { + var item = servicos[index]; + if (text) { + var value = item.firstChild.data; + if (value.match(rx) == null) { + item.addClassName('escondido'); + } else { + item.removeClassName('escondido'); + } + } else { + item.removeClassName('escondido'); + } + } +} + diff --git a/Fila-Web/root/render/status_atendente.tt b/Fila-Web/root/render/status_atendente.tt index 466dfa5..dc91b1e 100644 --- a/Fila-Web/root/render/status_atendente.tt +++ b/Fila-Web/root/render/status_atendente.tt @@ -57,7 +57,8 @@ [% IF status_guiche.guiche.estado == 'concluido' || status_guiche.guiche.estado == 'disponivel' %] [% IF lista_servicos %] -

Serviços:


+

Serviços (utilize o campo para filtrar):


+