diff options
-rw-r--r-- | lib/AdminPanel/rpmdragora.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm index 0729b0d..287dfc5 100644 --- a/lib/AdminPanel/rpmdragora.pm +++ b/lib/AdminPanel/rpmdragora.pm @@ -276,6 +276,7 @@ sub getbanner() { scroll => Rich Text with scroll bar used yesno => dialog with "yes" and "no" buttons (deafult yes) dont_ask_again => add a checkbox with "dont ask again text" + main_dialog => create a main dialog instead of a popup one } =head3 OUTPUT @@ -312,7 +313,9 @@ sub interactive_msg { yui::YUI::app()->setApplicationTitle($title); my $factory = yui::YUI::widgetFactory; - my $dlg = $factory->createPopupDialog(); + my $dlg = $options{main_dialog} ? + $factory->createMainDialog() : + $factory->createPopupDialog(); my $minSize = $factory->createMinSize( $dlg, 75, 6); my $vbox = $factory->createVBox( $minSize ); my $midhbox = $factory->createHBox($vbox); |