From 86aedf7452494bc4c666cd102b8eadffd7f4a4dc Mon Sep 17 00:00:00 2001 From: Dany wm De Bontridder Date: Sun, 1 Nov 2020 20:25:42 +0100 Subject: [PATCH] Cosmetic : add waiting box when searching by card category for Management customer, supplier,... --- include/adm.inc.php | 2 +- include/bank.inc.php | 2 +- include/customer.inc.php | 2 +- include/manager.inc.php | 2 +- include/supplier.inc.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/adm.inc.php b/include/adm.inc.php index 5c571f66d..f68519e61 100644 --- a/include/adm.inc.php +++ b/include/adm.inc.php @@ -86,7 +86,7 @@ if ( $low_action == "list" ) ' where frd_id=$1 '. ' order by fd_label ',1,array(FICHE_TYPE_ADM_TAX)); $sel_card->selected=$http->get("cat","number",-1); - $sel_card->javascript=' onchange="submit(this);"'; + $sel_card->javascript=' onchange="waiting_box();submit(this);"'; echo _('Catégorie :').$sel_card->input(); } else { diff --git a/include/bank.inc.php b/include/bank.inc.php index 6fd15dd42..d64f2b5f0 100644 --- a/include/bank.inc.php +++ b/include/bank.inc.php @@ -82,7 +82,7 @@ if ( $low_action == "list" ) ' where frd_id=$1'. ' order by fd_label ',1,array(FICHE_TYPE_FIN)); $sel_card->selected=$http->get("cat","number",-1); - $sel_card->javascript=' onchange="submit(this);"'; + $sel_card->javascript=' onchange="waiting_box();submit(this);"'; echo _('Catégorie :').$sel_card->input(); } else diff --git a/include/customer.inc.php b/include/customer.inc.php index d42e835bf..48bcfb729 100644 --- a/include/customer.inc.php +++ b/include/customer.inc.php @@ -86,7 +86,7 @@ if ($low_action == "list") ' where frd_id='.FICHE_TYPE_CLIENT. ' order by fd_label ',1); $sel_card->selected=$http->get("cat","number",-1); - $sel_card->javascript=' onchange="submit(this);"'; + $sel_card->javascript=' onchange="waiting_box();submit(this);"'; echo _('Catégorie :').$sel_card->input(); } else { diff --git a/include/manager.inc.php b/include/manager.inc.php index 83c336b18..ba0a22b8a 100644 --- a/include/manager.inc.php +++ b/include/manager.inc.php @@ -89,7 +89,7 @@ if ($low_action == "list") ' where frd_id=' . FICHE_TYPE_EMPL . ' order by fd_label ', 1); $sel_card->selected=$http->get("cat","number",-1); - $sel_card->javascript = ' onchange="submit(this);"'; + $sel_card->javascript = ' onchange="waiting_box();submit(this);"'; echo _('Catégorie :') . $sel_card->input(); } else diff --git a/include/supplier.inc.php b/include/supplier.inc.php index 5c2931228..d5aee3c29 100644 --- a/include/supplier.inc.php +++ b/include/supplier.inc.php @@ -88,7 +88,7 @@ if ( $low_action == "list" ) ' where frd_id='.FICHE_TYPE_FOURNISSEUR. ' order by fd_label ',1); $sel_card->selected=$http->get("cat","number",-1); - $sel_card->javascript=' onchange="submit(this);"'; + $sel_card->javascript=' onchange="waiting_box();submit(this);"'; echo _('Catégorie :').$sel_card->input(); } else {