/[BackupPC]/trunk/lib/BackupPC/SearchLib.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/BackupPC/SearchLib.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 229 by dpavlin, Tue Oct 25 09:30:51 2005 UTC revision 230 by dpavlin, Tue Oct 25 09:30:52 2005 UTC
# Line 480  sub displayBackupsGrid($) { Line 480  sub displayBackupsGrid($) {
480    
481          my $param = shift;          my $param = shift;
482    
483            my $max_archive_size = $Conf{MaxArchiveSize} || die "no MaxArchiveSize";
484            my $max_archive_file_size = $Conf{MaxArchiveFileSize}  || die "no MaxFileInSize";
485    
486          my $retHTML .= q{          my $retHTML .= q{
487                  <form id="forma" method="POST" action="}.$MyURL.q{?action=burn">                  <form id="forma" method="POST" action="}.$MyURL.q{?action=burn">
488          };          };
# Line 603  var debug_div = null; Line 606  var debug_div = null;
606  EOF3  EOF3
607    
608          # take maximum archive size from configuration          # take maximum archive size from configuration
609          $retHTML .= 'var media_size = '. $Conf{MaxArchiveSize} .';';          $retHTML .= qq{
610    var media_size = $max_archive_size ;
611    var max_file_size = $max_archive_file_size;
612    
613    };
614    
615          $retHTML .= <<'EOF3';          $retHTML .= <<'EOF3';
616    
# Line 683  function sumiraj(e) { Line 690  function sumiraj(e) {
690                  }                  }
691    
692                  var parts = parseInt( element_id("prt" + e.name.substr(3)).value);                  var parts = parseInt( element_id("prt" + e.name.substr(3)).value);
693                  if (suma > media_size && suma == size && parts > 1) {                  if (suma > max_file_size && suma == size && parts > 1) {
694                          element_id("parts").innerHTML = "This will take "+parts+" mediums!";                          element_id("parts").innerHTML = "This will take "+parts+" mediums!";
695                          element_id("parts").style.display = 'block';                          element_id("parts").style.display = 'block';
696                          update_sum(media_size, suma);                          update_sum(media_size, suma);

Legend:
Removed from v.229  
changed lines
  Added in v.230

  ViewVC Help
Powered by ViewVC 1.1.26