// Fix multishop javascript for preferences and shop url
This commit is contained in:
1 parent
a2c22b15a8
commit
d105d7a2ef
3 files changed
+4
-4
No files matched your search
@@ -179,7 +179,7 @@
|
||||
{if ($field['multishop_default'])}
|
||||
<div class="preference_default_multishop">
|
||||
<label>
|
||||
<input type="checkbox" name="configUseDefault['{$key}']" value="1" {if $field['is_disabled']} checked="checked"{/if} onclick="checkMultishopDefaultValue(this, '{$key}')" /> {l s='Use default value'}
|
||||
<input type="checkbox" name="configUseDefault[{$key}]" value="1" {if $field['is_disabled']} checked="checked"{/if} onclick="checkMultishopDefaultValue(this, '{$key}')" /> {l s='Use default value'}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
if (physical)
|
||||
url += '/'+physical;
|
||||
if (virtual)
|
||||
url += '/'+virtual;
|
||||
url += '/'+virtual+'/';
|
||||
url = url.replace(/\/+/g, "/");
|
||||
$('#final_url').val('http://'+url);
|
||||
};
|
||||
|
||||
+2
-2
@@ -901,12 +901,12 @@ $(document).ready(function()
|
||||
{
|
||||
var key = $(v).attr('name');
|
||||
var len = key.length;
|
||||
checkMultishopDefaultValue(v, key.substr(18, len - 20));
|
||||
checkMultishopDefaultValue(v, key.substr(17, len - 18));
|
||||
});
|
||||
});
|
||||
|
||||
function checkMultishopDefaultValue(obj, key)
|
||||
{console.log(key)
|
||||
{
|
||||
if ($(obj).attr('checked') || $('#'+key).hasClass('isInvisible'))
|
||||
{
|
||||
$('#conf_id_'+key+' input, #conf_id_'+key+' textarea, #conf_id_'+key+' select').attr('disabled', true);
|
||||
|
||||
Reference in new issue
Block a user