Topic: Ajax Activation duplication
In the file inventory/prices.php lines 127 to 137 are:
if (list_updated('stock_id')) {
$Ajax->activate('price_table');
$Ajax->activate('price_details');
}
if (list_updated('stock_id') || isset($_POST['_curr_abrev_update']) || isset($_POST['_sales_type_id_update'])) {
// after change of stock, currency or salestype selector
// display default calculated price for new settings.
// If we have this price already in db it is overwritten later.
unset($_POST['price']);
$Ajax->activate('price_details');
}
We see that for the list_updated() is executed twice and the $Ajax->activate('price_details'); is also executed twice for it's being checked. Is this necessary?
Where is the code that manages the Ajax return functionality for the various trigger values such as 'price_details' ?