mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Feature #3748: Save the jquery selector when the form-panel is attached
This commit is contained in:
1 parent
758a29df3a
commit
be7f4d7fa6
1 file changed
+5
-5
@@ -23,9 +23,9 @@ define(function(require) {
|
||||
|
||||
function _insert(context) {
|
||||
var that = this;
|
||||
$("#wizardForms", context).append(that.htmlWizard());
|
||||
this.wizardElement = $(that.htmlWizard()).appendTo( $("#wizardForms", context) );
|
||||
if (that.htmlAdvanced) {
|
||||
$("#advancedForms", context).append(that.htmlAdvanced());
|
||||
this.advancedElement = $(that.htmlAdvanced()).appendTo( $("#advancedForms", context) );
|
||||
}
|
||||
|
||||
context.off('invalid.fndtn.abide', '#' + that.formPanelId + 'Wizard');
|
||||
@@ -65,11 +65,11 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _reset(context) {
|
||||
$('#' + this.formPanelId + "Wizard").remove();
|
||||
this.wizardElement.remove();
|
||||
if (this.htmlAdvanced) {
|
||||
$('#' + this.formPanelId + "Advanced").remove();
|
||||
this.advancedElement.remove();
|
||||
}
|
||||
|
||||
|
||||
this.insert(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user