This commit is contained in:
Paul Walcher 2017-12-15 09:40:21 +01:00 committed by Thomas Zilio
parent 9e357a360c
commit 3f0ac67612
3 changed files with 12 additions and 5 deletions

View File

@ -21,6 +21,8 @@ var isMobile = {
};
// Aggiunta dell'ingranaggio all'unload della pagina
$(window).on("beforeunload", function () {
$("#main_loading").show();
@ -420,6 +422,7 @@ function launch_modal(title, href, init_modal, id) {
id = '#bs-popup';
}
if (init_modal == null) {
init_modal = 1;
}
@ -427,9 +430,13 @@ function launch_modal(title, href, init_modal, id) {
$('html').addClass('modal-open');
$(id).on('hidden.bs.modal', function () {
$('html').removeClass('modal-open');
$(this).html('');
$(this).data('modal', null);
if ($('.modal-backdrop').length < 1 ) {
$('html').removeClass('modal-open');
$(this).html('');
$(this).data('modal', null);
}
});
// Lettura contenuto div

View File

@ -34,7 +34,7 @@ if (empty($idriga)) {
$listino = $dbo->fetchArray('SELECT prc_guadagno FROM mg_listini WHERE id = (SELECT idlistino_vendite FROM an_anagrafiche WHERE idanagrafica = '.prepare($idanagrafica).')');
if (!empty($listino[0]['prc_guadagno'])) {
$sconto = $listino[0]['prc_guadagno'];
$sconto_unitario = $listino[0]['prc_guadagno'];
$tipo_sconto = 'PRC';
}
} else {

View File

@ -21,7 +21,7 @@ if (empty($idriga)) {
$prezzo_acquisto = '0';
if (!empty($rs[0]['prc_guadagno'])) {
$sconto = $rs[0]['prc_guadagno'];
$sconto_unitario = $rs[0]['prc_guadagno'];
$tipo_sconto = 'PRC';
}
} else {