mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Direct Network - Add IP Range - prepend newly added record on the top.
This commit is contained in:
parent
3f2f7fd49f
commit
6a6f0874ae
@ -1191,9 +1191,9 @@ function initAddIpRangeToDirectNetworkButton($button, $midmenuItem1) {
|
||||
$dialogAddIpRangeToDirectNetwork.find("#zone_name").text(fromdb(zoneObj.name));
|
||||
|
||||
$button.show();
|
||||
$button.unbind("click").bind("click", function(event) {
|
||||
$("#direct_network_page").find("#tab_ipallocation").click();
|
||||
//$dialogAddIpRangeToDirectNetwork.find("#add_publicip_vlan_startip, #add_publicip_vlan_endip").val("");
|
||||
$button.unbind("click").bind("click", function(event) {
|
||||
if($("#direct_network_page").find("#tab_content_ipallocation").css("display") == "none")
|
||||
$("#direct_network_page").find("#tab_ipallocation").click();
|
||||
|
||||
$dialogAddIpRangeToDirectNetwork
|
||||
.dialog('option', 'buttons', {
|
||||
@ -1227,7 +1227,7 @@ function initAddIpRangeToDirectNetworkButton($button, $midmenuItem1) {
|
||||
var item = json.createvlaniprangeresponse.vlan;
|
||||
var $newTemplate = $("#iprange_template").clone();
|
||||
directNetworkIprangeJsonToTemplate(item, $newTemplate);
|
||||
$("#right_panel_content #direct_network_page #tab_content_ipallocation").find("#tab_container").append($newTemplate.show());
|
||||
$("#right_panel_content #direct_network_page #tab_content_ipallocation").find("#tab_container").prepend($newTemplate.show());
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
handleError(XMLHttpResponse, function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user