Skip to content
Browse files

Allow cutomization of "DO ANOTHER" HTML block in the table editor.

The DO ANOTHER block contains hard-coded text and return-pages used for radio
buttons which is always displayed for new entries.  This change allows
customized HTML to replace it for when you want to use the table editor in your
own custom admin pages.
  • Loading branch information...
1 parent a6c3c1d commit a2e08351c7363db9147f251eb48a0e5dbd4f76fa @pajamian pajamian committed Jan 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Vend/Table/
2 lib/Vend/Table/
@@ -4229,7 +4229,7 @@ EOF
if($opt->{ui_new_item}) {
my $aa_msg = l('Add another item');
my $rt_msg = l('Return to table select');
- chunk 'DO_ANOTHER', 'OUTPUT_MAP', <<EOF;
+ chunk 'DO_ANOTHER', 'OUTPUT_MAP', $opt->{ui_do_another} || <<EOF;
<input type="radio" class="$opt->{widget_class}" name="mv_nextpage" value="admin/flex_select" CHECKED>

0 comments on commit a2e0835

Please sign in to comment.
Something went wrong with that request. Please try again.