// Fix multishop javascript for preferences and shop url

This commit is contained in:
rMalie
2011-11-23 15:37:29 +00:00
parent a2c22b15a8
commit d105d7a2ef
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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);