mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 9557: CloudStack UI - Recurring Snapshot dialog - reset hidden info in interval dropdown.
This commit is contained in:
parent
435e178eef
commit
053246170c
@ -832,15 +832,14 @@ function doRecurringSnapshot($actionLink, $detailsTab, $midmenuItem1) {
|
|||||||
async: false,
|
async: false,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
var items = json.listsnapshotpoliciesresponse.snapshotpolicy;
|
var items = json.listsnapshotpoliciesresponse.snapshotpolicy;
|
||||||
var $snapInterval = dialogBox.find("#snapshot_interval");
|
var $snapInterval = dialogBox.find("#snapshot_interval");
|
||||||
if(items!=null && items.length>0) {
|
$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++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
$snapInterval.find("#snapshot_interval_"+item.intervaltype).data("jsonObj", item);
|
$snapInterval.find("#snapshot_interval_"+item.intervaltype).data("jsonObj", item);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
// Maybe use a different message
|
|
||||||
}
|
|
||||||
clearBottomPanel();
|
clearBottomPanel();
|
||||||
$snapInterval.val("0"); //default to hourly
|
$snapInterval.val("0"); //default to hourly
|
||||||
$snapInterval.change();
|
$snapInterval.change();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user