// Product name input field is now disabled until the link_rewrite field is loaded. Removed obsolete css rule

This commit is contained in:
tDidierjean
2012-01-09 14:01:45 +00:00
parent c04f88a470
commit 4a50ca4e9f
3 changed files with 4 additions and 4 deletions
@@ -89,7 +89,7 @@
<td style="padding-bottom:5px;" class="translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if !$language.is_default}display: none;{/if} float: left;">
<input class="{if !$product->id}copy2friendlyUrl{/if} updateCurrentText" size="43" type="text"
<input class="{if !$product->id}copy2friendlyUrl{/if} updateCurrentText" size="43" type="text" {if !$product->id}disabled="disabled"{/if}
id="name_{$language.id_lang}" name="name_{$language.id_lang}"
value="{$product->name[$language.id_lang]|htmlentitiesUTF8|default:''}"/><sup> *</sup>
<span class="hint" name="help_box">{l s='Invalid characters:'} <>;=#{}<span class="hint-pointer">&nbsp;</span>
@@ -32,6 +32,9 @@
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
// Enable product name field when the url rewrite field is loaded
$('.copy2friendlyUrl').removeAttr('disabled');
});
</script>
-3
View File
@@ -275,9 +275,6 @@ input[type="text"], input[type="password"], input[type="file"], textarea {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}
input[type="text"], input[type="password"], input[type="file"], textarea, select, option {
background-color:#FFF;
}
input[type="radio"], input[type="checkbox"] {
background-color:transparent;
}