From: hickert Date: Thu, 18 May 2006 09:15:33 +0000 (+0000) Subject: Made open/close link a bit longer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=caba34d376f88744c66583af9d5cc803e74db8e2;p=gosa.git Made open/close link a bit longer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3419 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 0a8bcb925..a2c48016c 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -97,6 +97,19 @@ class faiSummaryTab extends plugin{ function save_object() { $once = true; + + if(isset($_GET['expand']) && isset($_GET['id'])){ + if(isset($this->Result[$_GET['id']])){ + $this->Result[$_GET['id']]['Open'] =true ; + } + } + + if(isset($_GET['compress']) && isset($_GET['id'])){ + if(isset($this->Result[$_GET['id']])){ + unset($this->Result[$_GET['id']]['Open']); + } + } + foreach($_POST as $name => $value ){ /* check for open tag request */ @@ -189,13 +202,17 @@ class faiSummaryTab extends plugin{ $image = "".$this->objs[$key]["; if(!isset($entry['Open'])){ - $str .= " "; + $str .= " + + "._("Open")." "; $str .= $image." "; - $str .= "".$this->objs[$key]['Name'].""; + $str .= "".$this->objs[$key]['Name'].""; }else{ - $str .= " "; + $str .= " + + "._("Close")." "; $str .= $image." "; - $str .= "".$this->objs[$key]['Name'].""; + $str .= "".$this->objs[$key]['Name'].""; /* Display FAItemplate FAIhook FAIscript entries */ if(in_array($key,array("FAItemplate","FAIhook","FAIscript"))){ @@ -238,7 +255,7 @@ class faiSummaryTab extends plugin{ $str .=""; } - $str .= ""; + $str .= ""; $str .= $image." "; if(isset($data['FAIpriority'][0])){ $str .= "(".$data['FAIpriority'][0].")";