// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. (function($, cloudStack) { var elems = { aclDialog: function(args) { var isDialog = args.isDialog; var actionArgs = args.actionArgs; var context = args.context; var $acl = $('
').addClass('acl').multiEdit( $.extend(true, {}, actionArgs.multiEdit, { context: context }) ); // Show ACL dialog if (isDialog) { $acl.dialog({ title: _l('label.configure.network.ACLs'), dialogClass: 'configure-acl', width: 900, height: 600, buttons: { 'Done': function() { $(':ui-dialog').remove(); $('.overlay').remove(); } } }); } return $acl; }, vpcConfigureTooltip: function(args) { var context = args.context; var $browser = args.$browser; var $chart = args.$chart; var ipAddresses = args.ipAddresses; var acl = args.acl; var gateways = args.gateways; var siteToSiteVPN = args.siteToSiteVPN; var links = { 'ip-addresses': _l('label.menu.ipaddresses'), 'gateways': _l('label.private.Gateway'), 'site-to-site-vpn': _l('label.site.to.site.VPN'), 'network-acls': _l('label.network.ACLs') }; var $links = $('