mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Bug #3974: Fix first setAction call
This commit is contained in:
parent
d12c81e679
commit
e0e9a26fda
@ -740,6 +740,7 @@ define(function(require) {
|
||||
} // Panel not defined
|
||||
|
||||
formPanelInstance = new formPanel();
|
||||
formPanelInstance.setAction(formContext, action);
|
||||
tab["formPanelInstances"][formPanelId] = formPanelInstance;
|
||||
formPanelInstance.insert(formContext);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ define(function(require) {
|
||||
|
||||
this.action = action;
|
||||
|
||||
if ((prevAction && prevAction != action) || action == "update") {
|
||||
if (prevAction != undefined && (prevAction != action || action == "update")) {
|
||||
this.reset(context);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user