
On 05/16/2014 03:58 PM, Wen Wang wrote:
Bugfix that disabled the content display of the action button for an exsiting network when creating a new network. --- ui/js/src/kimchi.network.js | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/ui/js/src/kimchi.network.js b/ui/js/src/kimchi.network.js index ca6d29b..7ff39ae 100644 --- a/ui/js/src/kimchi.network.js +++ b/ui/js/src/kimchi.network.js @@ -172,6 +172,9 @@ kimchi.addNetworkActions = function(network) { $(".menu-container", "#" + network.name).mouseleave(function() { $(".menu-container", "#" + network.name).toggle(false); });
+ $("#networkAdd").on("click", function() { + $(".menu-container", "#" + network.name).toggle(false); + }); I think a better way is to bind listeners to jQuery UI drop-down menus or the HTML document node. It's not a problem of "Create a New Network" Button, it's just a problem of the drop-down menu. For example, maybe there are several networks in my host, and the problem is still there. See the attached screen shot. };
kimchi.initNetworkCreation = function() {