simplify and correct only_increment checkbox
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Feb 2011 18:44:48 +0000 (19:44 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 17 Feb 2011 17:58:53 +0000 (18:58 +0100)
lib/BackupPC/CGI/Browse.pm

index 33c525d..44d1777 100644 (file)
@@ -303,8 +303,7 @@ EOF
     }
 
        # XXX ASA
     }
 
        # XXX ASA
-       my $checked = $In{only_increment} ? ' checked' : '';
-       $filledBackup .= "<li><input type=checkbox name=only_increment$checked> show only this increment";
+       $filledBackup .= "<li><input type=checkbox name=only_increment value=checked $In{only_increment}> show only this increment";
 
     $dir   = decode_utf8($dir);
     $share = decode_utf8($share);
 
     $dir   = decode_utf8($dir);
     $share = decode_utf8($share);