Code

Added "Select all" tooltip
[gosa.git] / gosa-plugins / goto / admin / devices / class_deviceManagement.inc
index 59ce69d895962bdcdc0d79464292fe32495de229..6972caefa8d1069ca5fc529179b6cf5a64d35cb3 100644 (file)
@@ -4,8 +4,8 @@ class deviceManagement extends plugin
 {
 
   /* Definitions */
-  var $plHeadline     = "Devices";
-  var $plDescription  = "Manage devices";
+  var $plHeadline     = "Hotplug devices";
+  var $plDescription  = "Manage hotplug devices";
 
   /* Dialog attributes */
   var $ui                             = NULL;
@@ -269,7 +269,7 @@ class deviceManagement extends plugin
         } else {
           /* Normally this shouldn't be reached, send some extra
              logs to notify the administrator */
-          print_red (msgPool::permDelete());
+          msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
           new log("security","devices/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
@@ -324,7 +324,7 @@ class deviceManagement extends plugin
 
         /* Obviously the user isn't allowed to delete. Show message and
            clean session. */
-          print_red (msgPool::permDelete());
+          msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
       }
     }
 
@@ -353,7 +353,7 @@ class deviceManagement extends plugin
 
         /* Normally this shouldn't be reached, send some extra
            logs to notify the administrator */
-        print_red (msgPool::permDelete());
+        msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
         new log("security","devices/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
@@ -414,6 +414,9 @@ class deviceManagement extends plugin
 
   function save_object() {
     $this->DivListDevices->save_object();
+    if(is_object($this->CopyPasteHandler)){
+      $this->CopyPasteHandler->save_object();
+    }
   }