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

Hongliang Wang hlwang at linux.vnet.ibm.com
Fri May 23 10:16:26 UTC 2014


There exists another issue:

1) Click "Action" Button and trigger the drop-down menu
2) Click "User Action" Menu

Then both of the 2 drop-down menus will appear.

On 05/20/2014 06:32 PM, Wen Wang wrote:
> 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);
>       });
>   };




More information about the Kimchi-devel mailing list