|
1 | 1 | /** |
2 | 2 | * @fileOverview Common classes and objects used |
3 | 3 | * @author Ian Moore (imoore76 at yahoo dot com) |
4 | | - * @version $Id: phpvirtualbox.js 599 2015-07-27 10:40:37Z imoore76 $ |
5 | 4 | * @copyright Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com) |
6 | 5 | */ |
7 | 6 |
|
@@ -166,7 +165,9 @@ var vboxHostDetailsSections = { |
166 | 165 |
|
167 | 166 | var netRows = []; |
168 | 167 |
|
169 | | - d['networkInterfaces'].sort(strnatcasecmp); |
| 168 | + d['networkInterfaces'].sort(function(a,b){ |
| 169 | + return strnatcasecmp(a.name, b.name); |
| 170 | + }); |
170 | 171 |
|
171 | 172 | for(var i = 0; i < d['networkInterfaces'].length; i++) { |
172 | 173 |
|
@@ -338,7 +339,9 @@ var vboxVMDetailsSections = { |
338 | 339 | if(d['HWVirtExProperties'].Enabled) acList[acList.length] = trans('VT-x/AMD-V'); |
339 | 340 | if(d['HWVirtExProperties'].NestedPaging) acList[acList.length] = trans('Nested Paging'); |
340 | 341 | if(d['CpuProperties']['PAE']) acList[acList.length] = trans('PAE/NX'); |
341 | | - |
| 342 | + if(d['EffectiveParavirtProvider'] != 'None') |
| 343 | + acList[acList.length] = trans(d['EffectiveParavirtProvider'] + ' Paravirtualization'); |
| 344 | + |
342 | 345 | if($('#vboxPane').data('vboxConfig').enableAdvancedConfig) { |
343 | 346 | if(d['HWVirtExProperties'].LargePages) acList[acList.length] = trans('Large Pages'); |
344 | 347 | if(d['HWVirtExProperties'].UnrestrictedExecution) acList[acList.length] = trans('VT-x unrestricted execution'); |
@@ -3139,8 +3142,8 @@ function vboxWizard() { |
3139 | 3142 | function vboxToolbar(options) { |
3140 | 3143 |
|
3141 | 3144 | var self = this; |
3142 | | - this.buttons = options.buttons ? options.buttons : []; |
3143 | | - this.size = options.size ? options.size : 22; |
| 3145 | + this.buttons = options.buttons || []; |
| 3146 | + this.size = options.size || 22; |
3144 | 3147 | this.addHeight = 24; |
3145 | 3148 | this.lastItem = null; |
3146 | 3149 | this.buttonStyle = options.buttonStyle; |
@@ -3394,10 +3397,11 @@ function vboxToolbar(options) { |
3394 | 3397 | */ |
3395 | 3398 | function vboxToolbarSingle(options) { |
3396 | 3399 |
|
| 3400 | + var self = this; |
3397 | 3401 | this.parentClass = vboxToolbarSmall; |
3398 | | - options.buttons = [options.button] |
3399 | | - renderTo = options.renderTo |
3400 | | - options.renderTo = undefined |
| 3402 | + options.buttons = [options.button]; |
| 3403 | + renderTo = options.renderTo; |
| 3404 | + options.renderTo = undefined; |
3401 | 3405 | this.parentClass(options); |
3402 | 3406 | this._buttonElement = this.buttonElement; /* copy orig */ |
3403 | 3407 |
|
@@ -3743,7 +3747,7 @@ function vboxButtonMediaMenu(type,callback,mediumPath) { |
3743 | 3747 | * @return {Object} jQuery object containing button element |
3744 | 3748 | */ |
3745 | 3749 | this.getButtonElm = function () { |
3746 | | - return this._buttonElement; |
| 3750 | + return self._buttonElement; |
3747 | 3751 | }; |
3748 | 3752 |
|
3749 | 3753 | /** |
|
0 commit comments