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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12085 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-03 16:28:51 +00:00
parent bef0350b0a
commit 4f1948cc1c
+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();
});