1
0
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:
Carlos Martín 2016-07-18 16:22:08 +02:00
parent 3fd36b7160
commit f0a38bfcf5
2 changed files with 12 additions and 2 deletions

View File

@ -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) {

View File

@ -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);