// Fix enable friendly url button generator on multishop

This commit is contained in:
Jerome Nadaud
2013-10-01 16:44:03 +02:00
parent 55a5c69d40
commit 99a4ffe583
2 changed files with 7 additions and 3 deletions
@@ -87,7 +87,7 @@
<div class="row">
<label class="control-label col-lg-3" for="link_rewrite_{$id_lang}">
{include file="controllers/products/multishop/checkbox.tpl" field="link_rewrite" type="default" multilang="true"}
{include file="controllers/products/multishop/checkbox.tpl" field="link_rewrite" type="seo_friendly_url" multilang="true"}
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='friendly URL from the product name.'}">
{l s='Friendly URL:'}
@@ -103,7 +103,7 @@
</div>
</div>
<div class="col-lg-2">
<a class="btn btn-default" onmousedown="updateFriendlyURLByName();"><i class="icon-random"></i> {l s='Generate'}</a>
<button type="button" class="btn btn-default" id="generate-friendly-url" onmousedown="updateFriendlyURLByName();"><i class="icon-random"></i> {l s='Generate'}</button>
</div>
</div>
+5 -1
View File
@@ -1553,6 +1553,10 @@ var ProductMultishop = new function()
$('#attribute_unity').attr('disabled', checked);
break;
case 'seo_friendly_url':
$('#'+id).attr('disabled', checked);
$('#generate-friendly-url').attr('disabled', checked);
default :
$('#'+id).attr('disabled', checked);
break;
@@ -1592,7 +1596,7 @@ var ProductMultishop = new function()
ProductMultishop.checkField($('input[name=\'multishop_check[meta_title]['+v.id_lang+']\']').prop('checked'), 'meta_title_'+v.id_lang);
ProductMultishop.checkField($('input[name=\'multishop_check[meta_description]['+v.id_lang+']\']').prop('checked'), 'meta_description_'+v.id_lang);
ProductMultishop.checkField($('input[name=\'multishop_check[meta_keywords]['+v.id_lang+']\']').prop('checked'), 'meta_keywords_'+v.id_lang);
ProductMultishop.checkField($('input[name=\'multishop_check[link_rewrite]['+v.id_lang+']\']').prop('checked'), 'link_rewrite_'+v.id_lang);
ProductMultishop.checkField($('input[name=\'multishop_check[link_rewrite]['+v.id_lang+']\']').prop('checked'), 'link_rewrite_'+v.id_lang, 'seo_friendly_url');
});
};