1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-08 23:38:09 +01:00

Fix colorpicker

This commit is contained in:
Pek5892 2024-05-30 11:49:10 +02:00
parent d60510e6c0
commit e5d8d661a3
15 changed files with 106 additions and 107 deletions

View File

@ -376,9 +376,8 @@ span.form-control {
font-size: 1rem;
}
.colorpicker,
.colorpicker * {
z-index: 9999;
.colorpicker {
z-index: 1 !important;
}
.signature-pad {
@ -1587,6 +1586,10 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
box-shadow: 0px 0px 3px rgba(0,0,0,0.1);
}
.dropdown-menu {
z-index: 99999 !important;
}
@media screen and (max-width: 767px) {
.navbar-left {
display: inline-block;

View File

@ -81,15 +81,13 @@ use Models\Module;
</div>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>
<?php
$elementi = $dbo->fetchArray('SELECT `mg_articoli`.`id`, `mg_articoli`.`codice`, `mg_articoli`.`barcode` FROM `mg_articoli` WHERE (`id_categoria`='.prepare($id_record).' OR `id_sottocategoria`='.prepare($id_record).' OR `id_sottocategoria` IN (SELECT `id` FROM `mg_categorie` WHERE `parent`='.prepare($id_record).')) AND `deleted_at` IS NULL');

View File

@ -83,15 +83,13 @@ use Models\Module;
</div>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>
<?php
$elementi = $dbo->fetchArray('SELECT `my_impianti`.`id`, `my_impianti`.`matricola`, `my_impianti`.`nome` FROM `my_impianti` WHERE (`id_categoria`='.prepare($id_record).' OR `id_sottocategoria`='.prepare($id_record).' OR `id_sottocategoria` IN (SELECT `id` FROM `my_impianti_categorie` WHERE `parent`='.prepare($id_record).'))');

View File

@ -42,10 +42,10 @@ include_once __DIR__.'/../../core.php';
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
</script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -46,10 +46,10 @@ include_once __DIR__.'/../../core.php';
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -67,10 +67,10 @@ if (!empty($righe)) {
</a>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
</script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -59,11 +59,10 @@ include_once __DIR__.'/../../core.php';
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
</script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -84,12 +84,12 @@ if (!empty($record['can_delete'])) {
?>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
notifica();
});
</script>
</script>

View File

@ -63,12 +63,12 @@ if (!empty($record['can_delete'])) {
?>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
notifica();
});
</script>
</script>

View File

@ -45,12 +45,14 @@ include_once __DIR__.'/../../core.php';
</div>
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
</script>
<script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -114,14 +114,16 @@ if ($record['can_delete']) {
}
?>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
notifica();
});
});
$("#notifica").change(function() {
notifica();

View File

@ -59,11 +59,10 @@ include_once __DIR__.'/../../core.php';
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
</script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -83,12 +83,12 @@ if (!empty($record['can_delete'])) {
?>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
notifica();
});
</script>
</script>

View File

@ -59,11 +59,10 @@ include_once __DIR__.'/../../core.php';
</form>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
$('#modals > div #colore_').parent().find('.square').css( 'background', $('#modals > div #colore_').val() );
});
</script>
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
});
</script>

View File

@ -84,14 +84,13 @@ if (!empty($record['can_delete'])) {
}
?>
<script>
$(document).ready( function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
});
$('#colore').parent().find('.square').css( 'background', $('#colore').val() );
$(document).ready(function() {
$('.colorpicker').colorpicker({ format: 'hex' }).on('changeColor', function() {
$(this).parent().find('.square').css('background', $(this).val());
});
$('.colorpicker').parent().find('.square').css('background', $('.colorpicker').val());
notifica();
});
</script>
</script>