mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 22:21:36 +09:00
M #~: Fix error pop in vnet instantiate form (#405)
(cherry picked from commit 821ecfaf4b)
This commit is contained in:
1 parent
b8372e3806
commit
5bc0eb5d47
1 file changed
+11
-5
@@ -70,14 +70,18 @@ define(function(require) {
|
||||
this.templatesTable.initialize();
|
||||
|
||||
this.templatesTable.idInput().on("change", function(){
|
||||
$(".nameContainer", context).show();
|
||||
var template_id = $(this).val();
|
||||
var showRestForm = template_id !== "";
|
||||
|
||||
var templatesContext = $(".list_of_vntemplates", context);
|
||||
templatesContext.html("");
|
||||
templatesContext.show();
|
||||
$(".nameContainer", context).toggle(showRestForm);
|
||||
|
||||
var template_id = $(this).val();
|
||||
var templatesContext = $(".list_of_vntemplates", context);
|
||||
templatesContext.html("");
|
||||
templatesContext.toggle(showRestForm);
|
||||
|
||||
if (showRestForm) {
|
||||
that.setTemplateIds(context, [template_id]);
|
||||
}
|
||||
});
|
||||
|
||||
Tips.setup(context);
|
||||
@@ -86,5 +90,7 @@ define(function(require) {
|
||||
function _onShow(context) {
|
||||
this.templatesTable.resetResourceTableSelect();
|
||||
InstantiateTemplateFormPanel.prototype.onShow.call(this, context);
|
||||
|
||||
$(".nameContainer", context).hide();
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user