[Kimchi-devel] [PATCH V2] Issue#361:Bugfix as disable the action button content when creating network

Wen Wang wenwang at linux.vnet.ibm.com
Tue May 20 10:32:39 UTC 2014


Bugfix that disabled the content display of the action button for an exsiting
network when creating a new network.

V1 -> V2
Accroding to Hongliang Wang, fix the bug that tabs keep shown when there
exists more than one network.
---
 ui/js/src/kimchi.network.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ui/js/src/kimchi.network.js b/ui/js/src/kimchi.network.js
index ca6d29b..8c037e5 100644
--- a/ui/js/src/kimchi.network.js
+++ b/ui/js/src/kimchi.network.js
@@ -165,11 +165,13 @@ kimchi.addNetworkActions = function(network) {
         icons : {
             secondary : "action-button-icon"
         }
-    }).click(function() {
+    }).click(function(event) {
+        event.stopPropagation();
+        $("*").find(".menu-container", "#" + network.name).toggle(false);
         $(".menu-container", "#" + network.name).toggle();
         window.scrollBy(0, 150);
     });
-    $(".menu-container", "#" + network.name).mouseleave(function() {
+    $(document).click(function(event) {
         $(".menu-container", "#" + network.name).toggle(false);
     });
 };
-- 
1.9.1




More information about the Kimchi-devel mailing list