aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-02-19 09:01:56 +0100
committerAngelo Naselli <anaselli@linux.it>2015-02-19 09:01:56 +0100
commit5b2ba6448343f672b44d69554eed107970180269 (patch)
tree5aa9a8205220073aad29df73aea53547e5e76170
parent64599063810ef874c86d16433aef9da3a23f5546 (diff)
downloadcolin-keep-5b2ba6448343f672b44d69554eed107970180269.tar
colin-keep-5b2ba6448343f672b44d69554eed107970180269.tar.gz
colin-keep-5b2ba6448343f672b44d69554eed107970180269.tar.bz2
colin-keep-5b2ba6448343f672b44d69554eed107970180269.tar.xz
colin-keep-5b2ba6448343f672b44d69554eed107970180269.zip
could be shown as a main dialog
-rw-r--r--lib/AdminPanel/rpmdragora.pm5
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);