mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Feature #3748: Add onShow event to ar tabs in vnet create wizard
This commit is contained in:
1 parent
465b741b9b
commit
9fea800631
2 files changed
+13
-3
No files matched your search
@@ -203,7 +203,7 @@ define(function(require) {
|
||||
$('input#phydev', context).removeAttr('required');
|
||||
$('input#bridge', context).attr('required', '');
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
$("div.network_mode_description").hide();
|
||||
$('div.network_mode_description[value="' + $(this).val() + '"]').show();
|
||||
@@ -213,7 +213,6 @@ define(function(require) {
|
||||
$('#network_mode', context).trigger("change");
|
||||
|
||||
this.securityGroupsTable.initialize();
|
||||
this.securityGroupsTable.refreshResourceTableSelect();
|
||||
|
||||
CustomTags.setup( $("#vnetCreateContextTab", context) );
|
||||
|
||||
@@ -306,7 +305,14 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _onShow(context) {
|
||||
var that = this;
|
||||
|
||||
this.securityGroupsTable.refreshResourceTableSelect();
|
||||
|
||||
$('.ar_tab', context).each(function() {
|
||||
var ar_id = $(this).attr("ar_id");
|
||||
that.arTabObjects[ar_id].onShow();
|
||||
});
|
||||
}
|
||||
|
||||
function _fill(element, context) {
|
||||
|
||||
@@ -14,6 +14,7 @@ define(function(require) {
|
||||
ArTab.prototype = {
|
||||
'html': _generate_ar_tab_content,
|
||||
'setup': _setup_ar_tab_content,
|
||||
'onShow': _onShow,
|
||||
'retrieve': _retrieve_ar_tab_data
|
||||
};
|
||||
|
||||
@@ -70,11 +71,14 @@ define(function(require) {
|
||||
CustomTags.setup($('#'+str_ar_tab_id+'_custom_tags',ar_section));
|
||||
|
||||
this.securityGroupsTable.initialize();
|
||||
this.securityGroupsTable.refreshResourceTableSelect();
|
||||
|
||||
Tips.setup(ar_section);
|
||||
}
|
||||
|
||||
function _onShow(){
|
||||
this.securityGroupsTable.refreshResourceTableSelect();
|
||||
}
|
||||
|
||||
function _retrieve_ar_tab_data(){
|
||||
var data = {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user