Fix add.php

This commit is contained in:
Matteo 2018-11-08 17:45:35 +01:00
parent 34f29b6ad8
commit a5e3517c55
2 changed files with 22 additions and 1 deletions

View File

@ -64,10 +64,16 @@ if (isset($id_record)) {
<script>
$(document).ready( function(){
$('.colorpicker').colorpicker().on('changeColor', function(){
$('#bs-popup .colorpicker').colorpicker().on('changeColor', function(){
$('#bs-popup #colore_').parent().find('.square').css('background', $('#bs-popup #colore_').val());
});
$('#bs-popup #colore_').parent().find('.square').css('background', $('#bs-popup #colore_').val());
$('#bs-popup2 .colorpicker').colorpicker().on('changeColor', function(){
$('#bs-popup2 #colore_').parent().find('.square').css('background', $('#bs-popup2 #colore_').val());
});
$('#bs-popup2 #colore_').parent().find('.square').css('background', $('#bs-popup2 #colore_').val());
});
</script>

View File

@ -65,6 +65,21 @@ $(document).ready(function(){
$('#bs-popup #idsede').change( function(){
//session_set('superselect,idsede', $(this).val(), 0);
});
$('#bs-popup2 #idanagrafica').change( function(){
session_set('superselect,idanagrafica', $(this).val(), 0);
var value = !$(this).val() ? true : false;
$("#bs-popup2 #idsede").prop("disabled", value);
$("#bs-popup2 #idsede").selectReset();
});
$('#bs-popup2 #idsede').change( function(){
//session_set('superselect,idsede', $(this).val(), 0);
});
});
</script>