diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc
index 3bb9c1ed7b5df57bfd3605cd4c3777e566bef33a..ad390a4c0103f70118c57479fa93a220f1395f9f 100644 (file)
// Mark plugin as viewed
plugin::execute();
+ // Show ldif viewer
if(isset($_POST['viewLdif'])){
- echo "ding!";
+ $this->dialog = new ldifViewer($this->config, $this->dn);
+ }
+ if(isset($_POST['cancelLdifViewer'])) $this->dialog = NULL;
+ if($this->dialog instanceOf ldifViewer){
+ return($this->dialog->execute());
}
-
$smarty = get_smarty();
$smarty->assign('objectList', $this->objectList);
$smarty->assign("acls",$this->aclResolver->getReadableACL());
- $smarty->assign("usePrototype", "true");
+
session::set('autocomplete', $this->aclResolver);
return ($smarty->fetch (get_template_path('contents.tpl', TRUE, dirname(__FILE__))));
}