// Added safety to not be able to save product before the mandatory tabs are loaded

This commit is contained in:
tDidierjean
2012-01-03 16:28:51 +00:00
parent 9ebadee461
commit 3db7f7fb5d
+16
View File
@@ -289,10 +289,26 @@ function getManufacturers()
});
}
function disableSave()
{
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
{
$('#desc-product-save').hide();
$('#desc-product-save-and-stay').hide();
$('#product-tab-content-Associations').bind('loaded', function()
{
$('#desc-product-save').show();
$('#desc-product-save-and-stay').show();
});
}
}
/* function autocomplete */
urlToCall = null;
$(document).ready(function() {
updateCurrentText();
updateFriendlyURL();
disableSave();
});