Autocomplete fisso ad off per input e date

This commit is contained in:
Luca 2019-12-09 18:31:22 +01:00
parent b925c5771b
commit f9352fbcb8
4 changed files with 5 additions and 5 deletions

View File

@ -232,11 +232,11 @@ if (!empty($id_intervento)) {
<!-- RIGA 3 -->
<div class="row">
<div class="col-md-3">
{[ "type": "timestamp", "label": "<?php echo tr('Data/ora richiesta'); ?>", "name": "data_richiesta", "required": 1, "value": "<?php echo $data_richiesta ?: '-now-'; ?>", "extra": "autocomplete=off" ]}
{[ "type": "timestamp", "label": "<?php echo tr('Data/ora richiesta'); ?>", "name": "data_richiesta", "required": 1, "value": "<?php echo $data_richiesta ?: '-now-'; ?>" ]}
</div>
<div class="col-md-3">
{[ "type": "timestamp", "label": "<?php echo tr('Data/ora scadenza'); ?>", "name": "data_scadenza", "required": 0, "value": "<?php echo $data_scadenza; ?>", "extra": "autocomplete=off" ]}
{[ "type": "timestamp", "label": "<?php echo tr('Data/ora scadenza'); ?>", "name": "data_scadenza", "required": 0, "value": "<?php echo $data_scadenza; ?>" ]}
</div>
<div class="col-md-3">

View File

@ -66,7 +66,7 @@ class DateHandler implements HandlerInterface
}
$result .= '
<input |attr|>';
<input |attr| autocomplete="off">';
if (empty($values['label'])) {
if (empty($values['icon-before']) || empty($values['icon-after'])) {

View File

@ -53,7 +53,7 @@ class DefaultHandler implements HandlerInterface
{
// Generazione del codice HTML
return '
<input |attr|>';
<input |attr| autocomplete="off">';
}
/**

View File

@ -96,7 +96,7 @@ class HTMLWrapper implements WrapperInterface
<script>
var container = $("#'.$pseudo_id.'_validation");
container.closest(".input-group").find("input").on("change", function(){
container.closest(".input-group").find("input").on("change, blur", function(e){
var input = $(this);
var value = input.val();