bug 9557: CloudStack UI - Recurring Snapshot dialog - reset hidden info in interval dropdown.

This commit is contained in:
Jessica Wang 2011-05-11 16:47:24 -07:00
parent 435e178eef
commit 053246170c

View File

@ -832,15 +832,14 @@ function doRecurringSnapshot($actionLink, $detailsTab, $midmenuItem1) {
async: false,
success: function(json) {
var items = json.listsnapshotpoliciesresponse.snapshotpolicy;
var $snapInterval = dialogBox.find("#snapshot_interval");
if(items!=null && items.length>0) {
var $snapInterval = dialogBox.find("#snapshot_interval");
$snapInterval.find("#snapshot_interval_0,#snapshot_interval_1,#snapshot_interval_2,#snapshot_interval_3").data("jsonObj", null);
if(items!=null && items.length>0) {
for (var i = 0; i < items.length; i++) {
var item = items[i];
$snapInterval.find("#snapshot_interval_"+item.intervaltype).data("jsonObj", item);
}
} else {
// Maybe use a different message
}
}
clearBottomPanel();
$snapInterval.val("0"); //default to hourly
$snapInterval.change();