Skip to content

Commit

Permalink
* Allow cancel_text to be set when in database edit mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike committed Oct 19, 2003
1 parent 4e47ca7 commit 281eea1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Vend/Table/Editor.pm
@@ -1,6 +1,6 @@
# Vend::Table::Editor - Swiss-army-knife table editor for Interchange
#
# $Id: Editor.pm,v 1.43 2003-09-25 03:07:48 mheins Exp $
# $Id: Editor.pm,v 1.44 2003-10-19 16:54:53 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike@perusion.net>
Expand All @@ -26,7 +26,7 @@
package Vend::Table::Editor;

use vars qw($VERSION);
$VERSION = substr(q$Revision: 1.43 $, 10);
$VERSION = substr(q$Revision: 1.44 $, 10);

use Vend::Util;
use Vend::Interpolate;
Expand Down Expand Up @@ -1797,11 +1797,13 @@ show_times("begin table editor call item_id=$key") if $Global::ShowTimes;
my $ntext;
my $btext;
my $ctext;

if($pass_return_to) {
delete $::Scratch->{$opt->{next_text}};
}
elsif (! $opt->{wizard} and ! $opt->{nosave}) {
$::Scratch->{$opt->{next_text}} = $Tag->return_to('click', 1);
$ntext = $Tag->return_to('click', 1);
$ctext = $ntext . "\nmv_todo=back";
}
else {
if($opt->{action_click}) {
Expand Down Expand Up @@ -1851,7 +1853,7 @@ EOF

$opt->{next_text} = HTML::Entities::encode($opt->{next_text}, $ESCAPE_CHARS::std);
$opt->{back_text} = HTML::Entities::encode($opt->{back_text}, $ESCAPE_CHARS::std);
$opt->{cancel_text} = HTML::Entities::encode($opt->{cancel_text});
$opt->{cancel_text} = HTML::Entities::encode($opt->{cancel_text}, $ESCAPE_CHARS::std);

$::Scratch->{$opt->{next_text}} = $ntext if $ntext;
$::Scratch->{$opt->{cancel_text}} = $ctext if $ctext;
Expand Down

0 comments on commit 281eea1

Please sign in to comment.