1
0
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:
Carlos Martín 2015-09-08 17:40:53 +02:00
parent d12c81e679
commit e0e9a26fda
2 changed files with 2 additions and 1 deletions

View File

@ -740,6 +740,7 @@ define(function(require) {
} // Panel not defined
formPanelInstance = new formPanel();
formPanelInstance.setAction(formContext, action);
tab["formPanelInstances"][formPanelId] = formPanelInstance;
formPanelInstance.insert(formContext);
}

View File

@ -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);
}
}