FIX: no se podia cargar imagenes

This commit is contained in:
2020-05-31 11:59:40 -04:00
parent cb08e0af64
commit 26bd5207f3
3 changed files with 16 additions and 15 deletions

View File

@ -105,11 +105,11 @@
<div class="fields">
<div class="field">
<label>Tamaño M&iacute;nimo</label>
<input type="text" name="tamaño_min" value="{{(property_exists($producto, 'tamaños')) ? explode(' - ', rtrim($producto->tamaños, ' m²'))[0] : ''}}" />
<input type="text" name="tamaño_min" value="{{(property_exists($producto, 'tamaños') and is_array($producto->tamaños)) ? explode(' - ', rtrim($producto->tamaños, ' m²'))[0] : ''}}" />
</div>
<div class="field">
<label>Tamaño M&aacute;ximo</label>
<input type="text" name="tamaño_max" value="{{(property_exists($producto, 'tamaños')) ? explode(' - ', rtrim($producto->tamaños, ' m²'))[1] : ''}}" />
<input type="text" name="tamaño_max" value="{{(property_exists($producto, 'tamaños') and is_array($producto->tamaños)) ? explode(' - ', rtrim($producto->tamaños, ' m²'))[1] : ''}}" />
</div>
</div>
</div>
@ -202,6 +202,9 @@
},
formatInput: false,
onChange: function(a, b) {
if (typeof a == 'undefined') {
a = new Date()
}
$(this).find('input').val(('0' + (a.getMonth() + 1)).slice(-2) + '/' + a.getFullYear())
}
})