Merge branch 'add_jquery_sortable'
[order_line_extra.git] / item_schedule.php
index 7276bdc5f970d7c2985c90121994348a63e4cc50..36b10b935b86acbb09900d50a25db7d9dfa1f999 100644 (file)
@@ -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);