aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-11-07 17:18:11 +0100
committerAngelo Naselli <anaselli@linux.it>2014-11-07 17:18:11 +0100
commitc1f70e7c8baf34fbf70d1f0b2baeed92e02108bb (patch)
treee17820e1a36d8180a4e5ee8e032707fecdbaf88e /modules
parent7253c3fd1c7d7a7fc469f523cb3ec5e67f557171 (diff)
downloadmanatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.gz
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.bz2
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.xz
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.zip
code reviewed for showing/hidding info option
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/rpmdragora/dragoraUpdate15
-rwxr-xr-xmodules/rpmdragora/rpmdragora5
2 files changed, 5 insertions, 15 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate
index d2ccd024..5b20ed7d 100755
--- a/modules/rpmdragora/dragoraUpdate
+++ b/modules/rpmdragora/dragoraUpdate
@@ -267,18 +267,9 @@ sub run_treeview_dialog {
if (!$item) {
#URL emitted or at least a ref into RichText widget
my $url = yui::toYMenuEvent($event)->id ();
- $item = $packageTbl->selectedItem();
- my $pkg = $data{$item->index()}{fullname};
- if ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{details}) {
- $info_options->{details} = $info_options->{details} ? 0 : 1;
- AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
- }
- elsif ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{files}) {
- $info_options->{files} = $info_options->{files} ? 0 : 1;
- AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
- }
- elsif ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{changelog}) {
- $info_options->{changelog} = $info_options->{changelog} ? 0 : 1;
+ if (AdminPanel::Rpmdragora::gui::info_details($url, $info_options) ) {
+ $item = $packageTbl->selectedItem();
+ my $pkg = $data{$item->index()}{fullname};
AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
}
else {
diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora
index 5d7a847a..503e22dd 100755
--- a/modules/rpmdragora/rpmdragora
+++ b/modules/rpmdragora/rpmdragora
@@ -1103,9 +1103,8 @@ sub run_treeview_dialog {
if (!$item) {
#URL emitted or at least a ref into RichText widget
my $url = yui::toYMenuEvent($event)->id ();
- $item = $detail_list->selectedItem();
- if ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{details}) {
- $info_options->{details} = $info_options->{details} ? 0 : 1;
+ if (AdminPanel::Rpmdragora::gui::info_details($url, $info_options) ) {
+ $item = $detail_list->selectedItem();
detaillist_callback($item, $info, \%$options, $info_options);
}
else {