in Webapp/SDAF/wwwroot/js/site.js [211:254]
function retainFormValues() {
// default to only show basic parameters
$("#advanced-filter").prop("checked", false);
$("#advanced-filter").trigger("change");
$("#expert-filter").prop("checked", false);
$("#expert-filter").trigger("change");
var dropdownsAffected = [
{
ids: ["location"],
controller: "/Armclient/GetLocationOptions",
errorMessage: "Error retrieving locations",
input: {}
},
{
ids: ["subscription"],
controller: "/Armclient/GetSubscriptionOptions",
errorMessage: "Error retrieving subscriptions",
input: {}
},
{
ids: ["workload_zone"],
controller: "/Landscape/GetWorkloadZones",
errorMessage: "Error retrieving existing workload zones",
input: {}
}
];
Promise.all(dropdownsAffected.map(updateAndSetDropdowns)).then(function () {
for (var prop in model) {
if (model[prop] != null) {
setCurrentValue(prop);
}
}
document.getElementById('loading-background').style.visibility = "hidden";
}).catch(function () {
for (var prop in model) {
if (model[prop] != null) {
setCurrentValue(prop);
}
}
document.getElementById('loading-background').style.visibility = "hidden";
});
}