[-] BO : #PSTEST-31 : update in AdminProductsController : available_date

This commit is contained in:
lLefevre
2011-12-19 14:42:58 +00:00
parent 5a6fb2db57
commit 41450edc44
6 changed files with 23 additions and 25 deletions
+8 -8
View File
@@ -151,14 +151,8 @@ virtual_product_nb_days, is_shareable)
}
}
getE('id_product_attribute').value = id_product_attribute;
if (document.getElementById)
var style = document.getElementById('ResetSpan').style;
else if (document.all)
var style = document.all['ResetSpan'].style;
else if (document.layers)
var style = document.layers['ResetSpan'].style;
if (style.display == 'none')
style.display = 'block';
$('#available_date_attribute').val(available_date);
}
function populate_attrs()
@@ -225,6 +219,12 @@ function init_elems()
if (elem[i])
elem.remove(i);
$('input[name="id_image_attr[]"]').each(function (){
$(this).attr('checked', false);
});
$('#attribute_default').attr('checked', false);
getE('attribute_price_impact').selectedIndex = 0;
getE('attribute_weight_impact').selectedIndex = 0;
getE('attribute_unit_impact').selectedIndex = 0;