Customer Payment Entry - Scrolling behaviour when clicking All or None. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Dec 2019 06:50:36 +0000 (07:50 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Dec 2019 06:50:36 +0000 (07:50 +0100)
includes/ui/allocation_cart.inc

index b45110b35ade07d366eb4a8622f81e7d9b93ee0f..617c41af6207d5ee068b8d34511c097722392ef3 100644 (file)
@@ -310,9 +310,9 @@ function show_allocatable($show_totals) {
                        $un_allocated = round((abs($alloc_item->amount) - $alloc_item->amount_allocated), 6);
                        amount_cell($un_allocated, false,'', 'maxval'.$id);
                        amount_cells(null, "amount" . $id);//, input_num('amount' . $id));
-                               label_cell("<a href='#' name=Alloc$id onclick='allocate_all(this.name.substr(5));return true;'>"
+                               label_cell("<a href='javascript:void(0)' name=Alloc$id onclick='allocate_all(this.name.substr(5));return true;'>"
                                         . _("All") . "</a>");
-                               label_cell("<a href='#' name=DeAll$id onclick='allocate_none(this.name.substr(5));return true;'>"
+                               label_cell("<a href='javascript:void(0)' name=DeAll$id onclick='allocate_none(this.name.substr(5));return true;'>"
                                         . _("None") . "</a>".hidden("un_allocated" . $id, 
                                         price_format($un_allocated), false));
                                end_row();