Fix: best practice

This commit is contained in:
Regis Houssin 2012-07-28 09:10:09 +02:00
parent 70eb10daf7
commit 5fb22d689b

View File

@ -147,12 +147,12 @@ if ($action == 'edit')
{
print '<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
jQuery("#main_lang_default").change(function() {
jQuery("#check_MAIN_LANG_DEFAULT").attr(\'checked\', true);
$("#main_lang_default").change(function() {
$("#check_MAIN_LANG_DEFAULT").attr(\'checked\', true);
});
jQuery("#main_size_liste_limit").keyup(function() {
if (jQuery("#main_size_liste_limit").val() == \'\') jQuery("#check_SIZE_LISTE_LIMIT").attr(\'checked\', false);
else jQuery("#check_SIZE_LISTE_LIMIT").attr(\'checked\', true);
$("#main_size_liste_limit").keyup(function() {
if ($(this).val().length) $("#check_SIZE_LISTE_LIMIT").attr(\'checked\', true);
else $("#check_SIZE_LISTE_LIMIT").attr(\'checked\', false);
});
});
</script>';