mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cloudstack 3.0 UI - global settings page - fix a bug that "value" column turned blank when Save button is being clicked.
This commit is contained in:
parent
297fbc171c
commit
d983462558
@ -373,7 +373,9 @@
|
|||||||
if (!options) options = {};
|
if (!options) options = {};
|
||||||
|
|
||||||
var oldVal = $label.html();
|
var oldVal = $label.html();
|
||||||
$label.html(_s(val));
|
|
||||||
|
if(val != null )
|
||||||
|
$label.html(_s(val));
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
id: $instanceRow.data('list-view-item-id'),
|
id: $instanceRow.data('list-view-item-id'),
|
||||||
@ -411,15 +413,16 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (args.cancel) {
|
if (args.cancel) { //click Cancel button
|
||||||
showLabel();
|
showLabel();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$editInput.is(':visible') || !(typeof(args.action) == 'undefined')) {
|
if (!$editInput.is(':visible') || !(typeof(args.action) == 'undefined')) { //click Edit button
|
||||||
showEditField();
|
showEditField();
|
||||||
} else if ($editInput.val() != $label.html()) {
|
}
|
||||||
|
else if ($editInput.val() != $label.html()) { //click Save button with changed value
|
||||||
$edit.animate({ opacity: 0.5 });
|
$edit.animate({ opacity: 0.5 });
|
||||||
|
|
||||||
var originalName = $label.html();
|
var originalName = $label.html();
|
||||||
@ -442,7 +445,8 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
|
else { //click Save button with unchanged value
|
||||||
showLabel();
|
showLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user