1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

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> <script>
$(document).ready( function(){ $(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-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> </script>

View File

@@ -66,5 +66,20 @@ $(document).ready(function(){
//session_set('superselect,idsede', $(this).val(), 0); //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> </script>