From: hickert Date: Tue, 23 Oct 2007 08:41:06 +0000 (+0000) Subject: Fixed list handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=86125112db2dcd406bad955e500a8afd8c8fe55c;p=gosa.git Fixed list handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7626 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_divListMasses.inc b/plugins/addons/gotomasses/class_divListMasses.inc index f6c1bea9c..ff912bd29 100644 --- a/plugins/addons/gotomasses/class_divListMasses.inc +++ b/plugins/addons/gotomasses/class_divListMasses.inc @@ -28,7 +28,22 @@ class divListMasses extends MultiSelectWindow $this->$name = TRUE; $this->AddCheckBox($name,$desc,$desc,TRUE); } - $this->GenHeader(); + $plug = $_GET['plug']; + + /* Toggle all selected / deselected */ + $chk = ""; + + /* set Page header */ + $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); + + $this->AddHeader(array("string"=>""._("Target")."")); + $this->AddHeader(array("string"=>""._("Schedule")."", + "attach"=>"style='width:100px;'")); + $this->AddHeader(array("string"=>""._("Type")."", + "attach"=>"style='width:80px;'")); + $this->AddHeader(array("string"=>_("Action"), + "attach"=>"style='border-right:0px;width:40px;'")); } function GenHeader() @@ -49,22 +64,6 @@ class divListMasses extends MultiSelectWindow /* Create divlist */ $this->SetListHeader($header); - $plug = $_GET['plug']; - - /* Toggle all selected / deselected */ - $chk = ""; - - /* set Page header */ - $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); - - $this->AddHeader(array("string"=>""._("Target")."")); - $this->AddHeader(array("string"=>""._("Schedule")."", - "attach"=>"style='width:100px;'")); - $this->AddHeader(array("string"=>""._("Type")."", - "attach"=>"style='width:80px;'")); - $this->AddHeader(array("string"=>_("Action"), - "attach"=>"style='border-right:0px;width:40px;'")); } function execute() diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index e54e70119..1dc2d9fc0 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -176,7 +176,7 @@ class gotomasses extends plugin * Handle Divlist ************/ - $this->divlist->ClearElementsList(); + $this->divlist->execute(); $this->divlist->SetEntries($this->tasks); return($this->divlist->Draw()); }