mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-07 16:58:18 +03:00
Do not initialise forms
This commit is contained in:
parent
8ba9f78f63
commit
3baeab8b48
@ -144,14 +144,6 @@ var Sunstone = {
|
||||
SunstoneCfg["form_panels"][form_name]=form_obj;
|
||||
|
||||
var context = $(".right-form", $('#'+tab_id));
|
||||
|
||||
// TODO check if it is already included
|
||||
|
||||
$("#advancedForms", context).append(form_obj.advanced_html);
|
||||
$("#wizardForms", context).append(form_obj.wizard_html);
|
||||
|
||||
//var form_context = $("#"+form_name+"_wizard, #"+form_name+"_advanced", context)
|
||||
form_obj.setup(context)
|
||||
},
|
||||
|
||||
//Adds a new info panel
|
||||
@ -184,11 +176,12 @@ var Sunstone = {
|
||||
if (reset) {
|
||||
$("#"+form_name+"_wizard", context).remove();
|
||||
$("#"+form_name+"_advanced", context).remove();
|
||||
}
|
||||
|
||||
if ($("#"+form_name+"_wizard", context).length == 0) {
|
||||
$("#advancedForms", context).append(form_obj.advanced_html);
|
||||
$("#wizardForms", context).append(form_obj.wizard_html);
|
||||
|
||||
//var form_context = $("#"+form_name+"_wizard, #"+form_name+"_advanced", context)
|
||||
form_obj.setup(context)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user