// Remove "no name" error on new product
This commit is contained in:
@@ -146,6 +146,9 @@
|
||||
// if the tab has not already been loaded, load it now
|
||||
tabs_manager.display(id, true);
|
||||
|
||||
if (btn_name == 'Associations')
|
||||
handleSaveButtons();
|
||||
|
||||
tabs_manager.onLoad(id, function(){
|
||||
$("#product-tab-content-"+id).show(0, function(){
|
||||
$(this).trigger('displayed');
|
||||
@@ -169,7 +172,8 @@
|
||||
{
|
||||
$('#desc-product-newCombination').hide();
|
||||
// if pack is enabled, save button are visible only if pack is valid
|
||||
handleSaveButtons();
|
||||
if (btn_name != 'Informations')
|
||||
handleSaveButtons();
|
||||
}
|
||||
hideOtherLanguage(default_language);
|
||||
$('.label-tooltip').tooltip();
|
||||
@@ -181,10 +185,6 @@
|
||||
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
|
||||
disableSave();
|
||||
|
||||
tabs_manager.onLoad('Associations', function(){
|
||||
handleSaveButtons();
|
||||
});
|
||||
|
||||
$('.confirm_leave').live('click', function(){
|
||||
// Double quotes are necessary when the translated string has single quotes
|
||||
return confirm("{l s='You will lose all unsaved modifications. Are you sure that you\'d like to proceed?' js=1}");
|
||||
|
||||
Reference in New Issue
Block a user