From: Eric Bollengier Date: Mon, 4 May 2009 14:01:22 +0000 (+0000) Subject: ebl fix bresto X-Git-Tag: Release-3.0.2~269 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4113731c1a7afb937dabec2b4aae943e2bbddab2;p=bacula%2Fbacula ebl fix bresto ebl tweak bweb output when moving tapes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8796 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/html/bresto.js b/gui/bweb/html/bresto.js index 2b085add48..6ddb522f49 100644 --- a/gui/bweb/html/bresto.js +++ b/gui/bweb/html/bresto.js @@ -724,9 +724,9 @@ Ext.onReady(function(){ text: 'View all file versions', checked: Ext.brestore.option_vafv, checkHandler: sel_option - }) + }), new Ext.menu.CheckItem({ - id: 'id_vafv', + id: 'id_copies', text: 'View copies version', checked: Ext.brestore.option_vcopies, checkHandler: sel_option diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 6d57df8182..c4168109e2 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -867,7 +867,7 @@ sub send_to_io my ($self, $slot) = @_; unless ($self->slot_is_full($slot)) { - print "Autochanger $self->{name} slot $slot is empty\n"; + print "Autochanger $self->{name} slot $slot is empty
\n"; return 1; # ok } @@ -875,20 +875,21 @@ sub send_to_io if ($self->is_slot_loaded($slot)) { # bconsole->umount # self->eject - print "Autochanger $self->{name} $slot is currently in use\n"; + print "Autochanger $self->{name} $slot is currently in use
\n"; return 0; } # autochanger must have I/O unless ($self->have_io()) { - print "Autochanger $self->{name} don't have I/O, you can take media yourself\n"; + print "Autochanger $self->{name} don't have I/O, you can take media yourself
\n"; return 0; } my $dst = $self->io_get_first_free(); unless ($dst) { - print "Autochanger $self->{name} you must empty I/O first\n"; + print "Autochanger $self->{name} mailbox is full, you must empty I/O first
\n"; + return 0; } $self->transfer($slot, $dst); @@ -929,30 +930,32 @@ sub clear_io { my ($self) = @_; + print "\n"; for my $slot (@{$self->{io}}) { if ($self->is_slot_loaded($slot)) { - print "$slot is currently loaded\n"; + print "\n"; next; } if ($self->slot_is_full($slot)) { my $free = $self->slot_get_first_free() ; - print "move $slot to $free :\n"; + print ""; if ($free) { if ($self->transfer($slot, $free)) { - print "ok
\n"; + print "\n"; } else { - print "ok
\n"; + print "\n"; } } else { - $self->{error} = "ok
\n"; + $self->{error} = "\n"; } } } + print "
Slot $slot is currently loaded
move slot $slot to $free :okokok
\n"; } # TODO : this is with mtx status output,