Skip to content

Commit

Permalink
Corrigindo comportamento dos filtros de pesquisa de destinatários nas…
Browse files Browse the repository at this point in the history
… modais de Pessoa Física e Pessoa Jurídica
  • Loading branch information
gabriel9nc committed Oct 15, 2024
1 parent ceca68b commit 15c8bb5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 8 additions & 3 deletions sei/web/modulos/peticionamento/md_pet_pessoa_fisica.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
}

$arrComandos = array();
$arrComandos[] = '<input type="submit" id="btnToggleLote" value="Selecionar em Lote" class="infraButton btnToggleLote" style="cursor: pointer" />';
$arrComandos[] = '<input type="submit" id="btnPesquisar" value="Pesquisar" class="infraButton" />';
$arrComandos[] = '<input type="button" id="btnToggleLote" value="Selecionar em Lote" class="infraButton btnToggleLote" style="cursor: pointer" />';
$arrComandos[] = '<input type="submit" id="btnPesquisar" value="Pesquisar" class="infraButton submitSearchForm" />';

if ($_GET['acao'] == 'md_pet_pessoa_fisica'){
$arrComandos[] = '<button type="button" accesskey="T" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>';
Expand Down Expand Up @@ -271,7 +271,7 @@ function inicializar(){

<!--Destinatarios em massa: Adicionado parametro id_documento para a validacao funcionar quando realizada a pesquisa dentro da modal:-->
<form id="frmUsuarioLista" method="post" class="" action="<?=SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao'].'&id_documento='.$idDocumento)?>">

<input type="submit" class="d-none" />
<div class="row">
<div class="col-xl-3 col-lg-4 col-md-4 col-sm-4 col-6">
<div class="form-group">
Expand Down Expand Up @@ -318,6 +318,11 @@ function inicializar(){
<script>
$(document).ready(function() {

$('.submitSearchForm').off('click').on('click', function(e) {
e.preventDefault(); e.stopPropagation();
$('form#frmUsuarioLista')[0].submit();
});

let timer;

$('#cpfList').off('input paste keyup').on('input paste keyup', function() {
Expand Down
11 changes: 9 additions & 2 deletions sei/web/modulos/peticionamento/md_pet_pessoa_juridica.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
}

$arrComandos = [];
$arrComandos[] = '<input type="submit" id="btnToggleLote" value="Selecionar em Lote" class="infraButton btnToggleLote" style="cursor: pointer" />';
$arrComandos[] = '<button type="submit" accesskey="P" id="sbmPesquisar" value="Pesquisar" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>';
$arrComandos[] = '<input type="button" id="btnToggleLote" value="Selecionar em Lote" class="infraButton btnToggleLote" style="cursor: pointer" />';
$arrComandos[] = '<button type="submit" accesskey="P" id="sbmPesquisar" value="Pesquisar" class="infraButton submitSearchForm"><span class="infraTeclaAtalho">P</span>esquisar</button>';

if ($_GET['acao'] == 'md_pet_pessoa_juridica'){
$arrComandos[] = '<button type="button" accesskey="T" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>';
Expand Down Expand Up @@ -213,6 +213,8 @@
</div>

<form id="frmSerieLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&filtro='. $_GET['filtro'].'&tipoDoc='.$_GET['tipoDoc'].'&acao_origem='.$_GET['acao'].'&id_documento='.$idDocumento))?>">
<input type="submit" class="d-none" />

<div class="row">
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-5 col-6">
<div class="form-group">
Expand Down Expand Up @@ -268,6 +270,11 @@ function inicializar(){

$(document).ready(function() {

$('.submitSearchForm').off('click').on('click', function(e) {
e.preventDefault(); e.stopPropagation();
$('form#frmSerieLista')[0].submit();
});

let timer;

$('#cnpjList').off('input paste keyup').on('input paste keyup', function() {
Expand Down

0 comments on commit 15c8bb5

Please sign in to comment.