mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #4620: Disable pci passthrough in nic-attach
This commit is contained in:
parent
3fd36b7160
commit
f0a38bfcf5
@ -81,8 +81,18 @@ define(function(require) {
|
||||
this.vnetsTable.refreshResourceTableSelect();
|
||||
}
|
||||
|
||||
function _setup(context) {
|
||||
/**
|
||||
* @param {Object} context jquery selector
|
||||
* @param {Object} options
|
||||
* options.hide_pci {bool} true to disable the pci checkbox
|
||||
*/
|
||||
function _setup(context, options) {
|
||||
var that = this;
|
||||
|
||||
if (options != undefined && options.hide_pci == true){
|
||||
$("input.pci-type-nic", context).attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
that.vnetsTable.initialize({
|
||||
'selectOptions': {
|
||||
'select_callback': function(aData, options) {
|
||||
|
@ -69,7 +69,7 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
that.nicTab.setup(context);
|
||||
that.nicTab.setup(context, {hide_pci: true});
|
||||
|
||||
Tips.setup(context);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user