From: Maxime Bourget Date: Sat, 1 Jun 2013 11:11:12 +0000 (+0100) Subject: simplify Ajax activation test. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=780a619068c2ddc37f7bda398dd0819860e13ff0;p=order_line_extra.git simplify Ajax activation test. --- diff --git a/item_schedule.php b/item_schedule.php index 7276bdc..36b10b9 100644 --- a/item_schedule.php +++ b/item_schedule.php @@ -53,10 +53,7 @@ else { } } -if (list_updated('stock_id')) - $Ajax->activate('item_schedule'); -if (in_ajax()) - $Ajax->activate('item_schedule'); +if (list_updated('stock_id') || in_ajax()) $Ajax->activate('item_schedule'); //if (!@$_GET['popup']) start_form(); @@ -65,6 +62,7 @@ if (in_ajax()) $stock_id = $_POST['stock_id']; stock_costable_items_list_cells(_("Item:"), 'stock_id', $stock_id); + end_row(); end_table(1);