From 1cfd498d5cfd096edaaf5619c7378f32d5d9f347 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 7 Dec 2009 12:48:04 +0000 Subject: [PATCH] Lock tabs when in DHCP dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14873 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_componentGeneric.inc | 7 +++++++ gosa-plugins/systems/admin/systems/class_servGeneric.inc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index 13f61c8f6..b3ff77e38 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -355,6 +355,13 @@ class componentGeneric extends plugin $this->netConfigDNS->ipHostNumber = $source['ipHostNumber'][0]; } } + + + function is_modal_dialog() + { + return((isset($this->dialog) && $this->dialog) || (isset($this->netConfigDNS->dialog) && $this->netConfigDNS->dialog)); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index cf5ca5f88..df682a605 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -520,6 +520,13 @@ class servgeneric extends plugin "FAIstate" => _("Action flag")) )); } + + + function is_modal_dialog() + { + return((isset($this->dialog) && $this->dialog) || (isset($this->netConfigDNS->dialog) && $this->netConfigDNS->dialog)); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2