[icinga-checkins] icinga.org: icinga-web/master: * Change focus back to the search box after refreshing search results.

git at icinga.org git at icinga.org
Mon Jan 10 09:12:33 CET 2011


Module: icinga-web
Branch: master
Commit: 44e4634ed8c60b1b990e821e041c62dd22dffb77
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=44e4634ed8c60b1b990e821e041c62dd22dffb77

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Jan  7 15:56:36 2011 +0100

* Change focus back to the search box after refreshing search results.

---

 .../templates/System/ObjectSearchSuccess.php       |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/templates/System/ObjectSearchSuccess.php b/app/modules/Cronks/templates/System/ObjectSearchSuccess.php
index d1c6b36..2081441 100755
--- a/app/modules/Cronks/templates/System/ObjectSearchSuccess.php
+++ b/app/modules/Cronks/templates/System/ObjectSearchSuccess.php
@@ -215,7 +215,10 @@ Cronk.util.initEnvironment("<?php echo $parentid = $rd->getParameter('parentid')
 					
 					oWindow().setTitle('Search: ' + val);
 					
-					oSearchHandler.reloadAllStores.defer(20, this, [val])
+					(function(val) {
+						oSearchHandler.reloadAllStores(val);
+						oTextField.focus(false, 10);
+					}.defer(20, this, [val]));
 					
 				}
 				else {





More information about the icinga-checkins mailing list