mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 7608: fix a bug "$editFields is undefined" when visiting a non-editable page first.
This commit is contained in:
parent
d497a71619
commit
db142eb467
@ -1168,8 +1168,10 @@ function getMidmenuItemFirstRow(text) {
|
||||
|
||||
var $readonlyFields, $editFields;
|
||||
function cancelEditMode($tab) {
|
||||
$editFields.hide();
|
||||
$readonlyFields.show();
|
||||
if($editFields != null)
|
||||
$editFields.hide();
|
||||
if($readonlyFields != null)
|
||||
$readonlyFields.show();
|
||||
$tab.find("#save_button, #cancel_button").hide();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user