// fix in product page edition after deleting pack and save, some javascript function were not loaded

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13481 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2012-02-20 17:32:54 +00:00
parent 609a45f25b
commit 1b91c7da2a
3 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -316,6 +316,7 @@ function enableSave()
function handleSaveButtons(e)
{
product_type = $("input[name=type_product]:checked").val();
msg = [];
var i = 0;
// relative to type of product
@@ -333,8 +334,8 @@ function handleSaveButtons(e)
{
msg[i++] = empty_name_msg;
}
// friendly_url_[defaultlangid]
if ($("#link_rewrite_"+defaultLanguage.id_lang).val() == "")
// check friendly_url_[defaultlangid] only if name is ok
else if ($("#link_rewrite_"+defaultLanguage.id_lang).val() == "")
msg[i++] = empty_link_rewrite_msg;
if (msg.length == 0)