[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Principals are now one-click editable (#fixes wq816)

git at icinga.org git at icinga.org
Tue Sep 28 11:49:08 CEST 2010


Module: icinga-web
Branch: jmosshammer/default
Commit: 3fc069a15c6b568d3869d91131f8e99577e7a960
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=3fc069a15c6b568d3869d91131f8e99577e7a960

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Fri Sep 24 16:51:45 2010 +0200

* Principals are now one-click editable (#fixes wq816)

---

 .../templates/Admin/PrincipalEditorSuccess.php     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/AppKit/templates/Admin/PrincipalEditorSuccess.php b/app/modules/AppKit/templates/Admin/PrincipalEditorSuccess.php
index 223144a..580a409 100755
--- a/app/modules/AppKit/templates/Admin/PrincipalEditorSuccess.php
+++ b/app/modules/AppKit/templates/Admin/PrincipalEditorSuccess.php
@@ -53,6 +53,7 @@ AppKit.principalEditor.principalSelector = Ext.extend(Ext.tree.TreePanel,{
 				typeAhead:true,
 				triggerAction:'all',
 				store: this.editorStore,
+				editDelay: -10,
 				valueField: 'idField',
 				forceSelection: false,
 				displayField: 'idField'
@@ -168,6 +169,9 @@ AppKit.principalEditor.principalSelector = Ext.extend(Ext.tree.TreePanel,{
 			subNode.isAPIPrincipal = record.get('type') == 'icinga';
 			subNode.on("click", function(el) {
 				this.prepareEditValue(el);
+				
+				this.editor.triggerEdit(subNode);
+				
 				return true;
 			}, this);
 			node.appendChild(subNode);





More information about the icinga-checkins mailing list