[Kimchi-devel] [PATCH] Issue#361:Bugfix as disable the action button content when creating network
Hongliang Wang
hlwang at linux.vnet.ibm.com
Fri May 16 09:20:31 UTC 2014
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() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network-dropdown.png
Type: image/png
Size: 194698 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140516/7bbd33d2/attachment.png>
More information about the Kimchi-devel
mailing list