From 780a619068c2ddc37f7bda398dd0819860e13ff0 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 1 Jun 2013 12:11:12 +0100 Subject: [PATCH] simplify Ajax activation test. --- item_schedule.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.30.2