mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Bug #3974: Fix first setAction call
This commit is contained in:
1 parent
d12c81e679
commit
e0e9a26fda
2 files changed
+2
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user