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 809990a commit 6253747
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/classes/webform/TForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,9 @@ public function setAutoComplete( $strFieldName
}
}

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

0 comments on commit 6253747

Please sign in to comment.