mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-8023: UI > VM wizard > network > trigger event handler of event "cloudStack.module.instanceWizard.network.dataProvider" to get networkObjsToPopulate if module is enabled.
This commit is contained in:
parent
417239e440
commit
f2fe127901
@ -568,6 +568,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// get networkObjsToPopulate
|
||||
$(window).removeData("cloudStack.module.instanceWizard.networkObjs");
|
||||
$(window).trigger("cloudStack.module.instanceWizard.network.dataProvider", {
|
||||
context: args.context,
|
||||
currentData: args.currentData,
|
||||
networkObjsToPopulate: networkObjsToPopulate
|
||||
});
|
||||
if ($(window).data("cloudStack.module.instanceWizard.networkObjs") == undefined) {
|
||||
//do nothing
|
||||
} else {
|
||||
networkObjsToPopulate = $(window).data("cloudStack.module.instanceWizard.networkObjs"); //override networkObjsToPopulate
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: createURL("listNetworkOfferings"),
|
||||
dataType: "json",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user