// Fix enable friendly url button generator on multishop
This commit is contained in:
1 parent
55a5c69d40
commit
99a4ffe583
2 files changed
+7
-3
No files matched your search
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="control-label col-lg-3" for="link_rewrite_{$id_lang}">
|
<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"
|
<span class="label-tooltip" data-toggle="tooltip"
|
||||||
title="{l s='friendly URL from the product name.'}">
|
title="{l s='friendly URL from the product name.'}">
|
||||||
{l s='Friendly URL:'}
|
{l s='Friendly URL:'}
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1553,6 +1553,10 @@ var ProductMultishop = new function()
|
|||||||
$('#attribute_unity').attr('disabled', checked);
|
$('#attribute_unity').attr('disabled', checked);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'seo_friendly_url':
|
||||||
|
$('#'+id).attr('disabled', checked);
|
||||||
|
$('#generate-friendly-url').attr('disabled', checked);
|
||||||
|
|
||||||
default :
|
default :
|
||||||
$('#'+id).attr('disabled', checked);
|
$('#'+id).attr('disabled', checked);
|
||||||
break;
|
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_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_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[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');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user