Skip to content

Commit

Permalink
🔤 BASE #267 formatando
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jun 6, 2022
1 parent 6aa4de9 commit 809990a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/classes/webform/TForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2039,11 +2039,9 @@ public function setAutoComplete( $strFieldName
$strMessageNotFound = $strMessageNotFound === null ? 'Nenhum registro encontrado' : ( string ) $strMessageNotFound;
$boolSearchAnyPosition = ( $boolSearchAnyPosition === true ? true : false );
$trimText = ( $trimText === true ? true : false );
if(is_null( $boolKeepFieldValuesOnPost))
{
if(is_null( $boolKeepFieldValuesOnPost)){
//if( $_REQUEST['gridOffline'] == 1 )
if( $this->getFormGridOffLine() )
{
if( $this->getFormGridOffLine() ){
$boolKeepFieldValuesOnPost=true;
}
}
Expand Down Expand Up @@ -2127,6 +2125,7 @@ public function setAutoComplete( $strFieldName
$strExtraParams.= $mixExtraSearchFields;
}
}

$strExtraParams = str_replace( array( '{', '}', ':"$', ').value"', '"jQuery("#', '\").get', '"{', '}"' ), array( '', '', ':$', ').value', 'jQuery("#', '").get', '{', '}' ), stripcslashes( json_encode( $aTemp ) ) );
$this->addJavascript( 'jQuery("#' . $strFieldName . '").autocomplete(' . $strUrl
. '&ajax=1", { ajax:1, delay:' . $intDelay . ', minChars:' . $intMinChars
Expand Down

0 comments on commit 809990a

Please sign in to comment.