From 1fb44c22f51cccab8f5c32b51fd8b52969c36073 Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 27 Mar 2007 11:56:36 +0000 Subject: - added popup menu for quick hosts controlling in configuration screen (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3941 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/js/menu.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontends/php/js') diff --git a/frontends/php/js/menu.js b/frontends/php/js/menu.js index 1824a5be..d9625c1d 100644 --- a/frontends/php/js/menu.js +++ b/frontends/php/js/menu.js @@ -224,7 +224,12 @@ function menu_expand (n_id) { // -------------------------------------------------------------------------------- function menu_onclick (n_id) { // don't go anywhere if item has no link defined - return Boolean(this.a_index[n_id].a_config[1]); + if(Boolean(this.a_index[n_id].a_config[1])) + { + this.collapse(0); + return true; + } + return false; } // -------------------------------------------------------------------------------- -- cgit