Univention Bugzilla – Attachment 4943 Details for
Bug 26062
UMC2: Löschen des ausgewählten Objektes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
LDAP-Tree: act on container below cursor and show LDAP-Path
010_bug26062.patch (text/plain), 1.54 KB, created by
Dirk Wiesenthal
on 2012-12-20 21:07 CET
(
hide
)
Description:
LDAP-Tree: act on container below cursor and show LDAP-Path
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2012-12-20 21:07 CET
Size:
1.54 KB
patch
obsolete
>When right-clicking on the ldap tree, act on the container under the cursor and show its path (Bug #26062) >Index: umc/js/udm.js >=================================================================== >--- umc/js/udm.js (Revision 37887) >+++ umc/js/udm.js (Arbeitskopie) >@@ -668,10 +668,15 @@ > > // add a context menu to edit/delete items > var menu = new Menu({}); >+ var nameMenuItem = new MenuItem({ >+ label: null, // this._navContextItem.path >+ disabled: true >+ }); >+ menu.addChild(nameMenuItem); > menu.addChild(new MenuItem({ > label: _( 'Edit' ), > iconClass: 'umcIconEdit', >- onClick: lang.hitch(this, function(e) { >+ onClick: lang.hitch(this, function() { > this.createDetailPage(this._navContextItem.objectType, this._navContextItem.id); > }) > })); >@@ -699,13 +704,10 @@ > this.own(menu); > > // remember on which item the context menu has been opened >- this.own(aspect.after(menu, '_openMyself', lang.hitch(this, function(e) { >- if (this._tree.selectedNode) { >- this._navContextItem = this._tree.selectedNode.item; >- } else { >- console.warn('this._tree.selectedNode is null'); >- } >- }))); >+ this.own(aspect.after(this._tree, '_onNodeFocus', lang.hitch(this, function(node) { >+ this._navContextItem = node.item; >+ nameMenuItem.set('label', this._navContextItem.id); >+ }), true)); > // in the case of changes, reload the navigation, as well (could have > // changes referring to container objects) > this.on('objectsaved', lang.hitch(this, function(dn, objectType) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 26062
: 4943