mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-19 06:50:07 +03:00
Fix sunstone dialog reset on submit
Because of the setTimeout sometimes the form panel reset finished after the back button was clicked, opening the form panel after a submit
This commit is contained in:
parent
dc2a9c2577
commit
27a67b8e29
@ -930,7 +930,9 @@ define(function(require) {
|
||||
formPanelInstance.reset(context);
|
||||
}
|
||||
|
||||
_showFormPanel(tabId, formPanelId);
|
||||
if (_formPanelVisible($("#"+tabId))){
|
||||
_showFormPanel(tabId, formPanelId);
|
||||
}
|
||||
}, 13)
|
||||
}
|
||||
|
||||
@ -1032,6 +1034,10 @@ define(function(require) {
|
||||
return $(".sunstone-list", context).is(':visible');
|
||||
}
|
||||
|
||||
var _formPanelVisible = function(context) {
|
||||
return $(".sunstone-form", context).is(':visible');
|
||||
}
|
||||
|
||||
var _rightInfoResourceId = function(context) {
|
||||
return $(".resource-id", context).text();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user