Autocomplete fisso ad off per input e date
This commit is contained in:
parent
b925c5771b
commit
f9352fbcb8
|
@ -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">
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
|
@ -53,7 +53,7 @@ class DefaultHandler implements HandlerInterface
|
|||
{
|
||||
// Generazione del codice HTML
|
||||
return '
|
||||
<input |attr|>';
|
||||
<input |attr| autocomplete="off">';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue