From f9333a282df56d3de2969b762e4b368e8224c66e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 16 Nov 2010 12:13:59 -0800 Subject: [PATCH] bug 5730: update zone - if dns1 or dns2 has been changed, pop up dialog box after updating zone: "DNS update will not take effect until all virtual routers are stopped and then started" --- ui/scripts/cloud.core.zone.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.zone.js b/ui/scripts/cloud.core.zone.js index 4bde72e19e4..c58f6da26b6 100644 --- a/ui/scripts/cloud.core.zone.js +++ b/ui/scripts/cloud.core.zone.js @@ -774,6 +774,10 @@ function doEditZone2($actionLink, $detailsTab, $midmenuItem1, $readonlyFields, $ var moreCriteria = []; var jsonObj = $detailsTab.data("jsonObj"); + + var oldDns1 = jsonObj.dns1; + var oldDns2 = jsonObj.dns2; + var id = jsonObj.id; moreCriteria.push("&id="+id); @@ -818,7 +822,13 @@ function doEditZone2($actionLink, $detailsTab, $midmenuItem1, $readonlyFields, $ $editFields.hide(); $readonlyFields.show(); - $("#save_button, #cancel_button").hide(); + $("#save_button, #cancel_button").hide(); + + if(item.dns1 != oldDns1 || item.dns2 != oldDns2) { + $("#dialog_info") + .text("DNS update will not take effect until all virtual routers are stopped and then started") + .dialog("open"); + } } }); }