From f93266fce1f2f6e1227583c6ab346fa04e38dd2b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Oct 2005 07:23:37 +0000 Subject: [PATCH] Added remove button for ppds git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1691 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 5 +++++ plugins/admin/systems/printer.tpl | 4 +++- plugins/admin/systems/printerPPDSelectionDialog.tpl | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 0ff2bfcb4..b88302340 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -252,6 +252,11 @@ class printgeneric extends plugin unset($this->dialog); $this->dialog= NULL; } + + if(isset($_POST['RemoveDriver'])){ + + $this->gotoPrinterPPD = array(); + } if(isset($_POST['SavePPD'])){ $this->dialog->save_object(); diff --git a/plugins/admin/systems/printer.tpl b/plugins/admin/systems/printer.tpl index 0664fa8dc..9511a61d5 100644 --- a/plugins/admin/systems/printer.tpl +++ b/plugins/admin/systems/printer.tpl @@ -58,7 +58,9 @@
- {t}PPD{/t} : {$driverInfo}
+ {t}PPD{/t} : {$driverInfo}
+ + diff --git a/plugins/admin/systems/printerPPDSelectionDialog.tpl b/plugins/admin/systems/printerPPDSelectionDialog.tpl index 7dfcc61d9..73c44ed5b 100644 --- a/plugins/admin/systems/printerPPDSelectionDialog.tpl +++ b/plugins/admin/systems/printerPPDSelectionDialog.tpl @@ -53,9 +53,9 @@

- +   - +