mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
new UI - name add pod dialog differently in source page and in zone page.
This commit is contained in:
parent
5fff851371
commit
d13b3c1535
@ -424,8 +424,8 @@
|
||||
</div>
|
||||
<!-- End Update Certificate Dialog -->
|
||||
|
||||
<!-- Add Pod Dialog (begin) -->
|
||||
<div id="dialog_add_pod" title="Add Pod" style="display: none">
|
||||
<!-- Add Pod Dialog in resource page (begin) -->
|
||||
<div id="dialog_add_pod_in_resource_page" title="Add Pod" style="display: none">
|
||||
<div class="dialog_formcontent">
|
||||
<form action="#" method="post" id="form_acquire">
|
||||
<ol>
|
||||
@ -489,7 +489,7 @@
|
||||
(info)</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Add Pod Dialog (end) -->
|
||||
<!-- Add Pod Dialog in resource page (end) -->
|
||||
|
||||
<!-- Add Host Dialog (begin) -->
|
||||
<div id="dialog_add_host" title="Add Host" style="display: none">
|
||||
|
||||
@ -264,9 +264,9 @@ function afterLoadResourceJSP($midmenuItem1) {
|
||||
}
|
||||
|
||||
function initAddPodShortcut() {
|
||||
initDialog("dialog_add_pod", 320);
|
||||
initDialog("dialog_add_pod_in_resource_page", 320);
|
||||
|
||||
var $zoneDropdown = $("#dialog_add_pod").find("#zone_dropdown");
|
||||
var $zoneDropdown = $("#dialog_add_pod_in_resource_page").find("#zone_dropdown");
|
||||
$.ajax({
|
||||
data: createURL("command=listZones&available=true"),
|
||||
dataType: "json",
|
||||
@ -280,10 +280,11 @@ function initAddPodShortcut() {
|
||||
});
|
||||
|
||||
$("#add_pod_shortcut").unbind("click").bind("click", function(event) {
|
||||
$("#dialog_add_pod").find("#info_container").hide();
|
||||
$("#dialog_add_pod #add_pod_name, #dialog_add_pod #add_pod_cidr, #dialog_add_pod #add_pod_startip, #dialog_add_pod #add_pod_endip, #add_pod_gateway").val("");
|
||||
$("#dialog_add_pod_in_resource_page").find("#info_container").hide();
|
||||
$("#dialog_add_pod_in_resource_page").find("#add_pod_name,#add_pod_cidr,#add_pod_startip,add_pod_endip").val("");
|
||||
$("#add_pod_gateway").val("");
|
||||
|
||||
$("#dialog_add_pod")
|
||||
$("#dialog_add_pod_in_resource_page")
|
||||
.dialog('option', 'buttons', {
|
||||
"Add": function() {
|
||||
var $thisDialog = $(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user