summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 196568f)
raw | patch | inline | side by side (parent: 196568f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 16 Mar 2006 10:40:09 +0000 (10:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 16 Mar 2006 10:40:09 +0000 (10:40 +0000) |
Was the obejct cutted out if its context,
or still copied ?
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2849 594d385d-05f5-0310-b6e9-bd551577e9d8
or still copied ?
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2849 594d385d-05f5-0310-b6e9-bd551577e9d8
html/images/copypaste.png | [new file with mode: 0644] | patch | blob |
html/images/cutpaste.png | [new file with mode: 0644] | patch | blob |
include/class_CopyPasteHandler.inc | patch | blob | history | |
plugins/admin/applications/class_applicationManagement.inc | patch | blob | history |
diff --git a/html/images/copypaste.png b/html/images/copypaste.png
new file mode 100644 (file)
index 0000000..636a4c5
Binary files /dev/null and b/html/images/copypaste.png differ
index 0000000..636a4c5
Binary files /dev/null and b/html/images/copypaste.png differ
diff --git a/html/images/cutpaste.png b/html/images/cutpaste.png
new file mode 100644 (file)
index 0000000..e514438
Binary files /dev/null and b/html/images/cutpaste.png differ
index 0000000..e514438
Binary files /dev/null and b/html/images/cutpaste.png differ
index c26192a4330aed8a82573c09eb2e3c34f2d046b8..993b59342b3d00db54c0b28f3a1fe0893c3464ac 100644 (file)
}
+ /* return current obejct dn
+ */
+ function GetCurrentDn()
+ {
+ return($this->objectdn);
+ }
+
+
/* Add Object which should be copied
*/
function Copy($obj,$emptyObj)
function Cut($obj){
$this->cutCurrent = true;
$this->current = $obj;
+ $this->objectdn = $obj->dn;
if($this->isCurrentObjectPastAble()){
return(true);
}else{
diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 60a83685fa76f31fc1f9ef8c20d367785e7f8e43..ef27ae0538b5059a7ad6a9e622e531e29f1f625a 100644 (file)
if($this->enableCopyPaste){
$Copy_Paste = " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+
if($this->CopyPasteHandler->isCurrentObjectPastAble()){
- $Copy_Paste .= "<input type='image' name='editPaste' class='center' src='images/editpaste.png' alt='"._("Paste")."'> ";
+
+ if($this->CopyPasteHandler->isCurrentCutted()){
+ $img = "images/cutpaste.png";
+ }else{
+ $img = "images/copypaste.png";
+ }
+
+ $Copy_Paste .= "<input type='image' name='editPaste' class='center'
+ src='".$img."' alt='"._("Paste")."' title='".$this->CopyPasteHandler->GetCurrentDn()."'> ";
}else{
$Copy_Paste .= "<img class='center' src='images/cant_editpaste.png' alt='"._("Can't paste")."'> ";
}