forked from phpvirtualbox/phpvirtualbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettingsGlobalGeneral.html
98 lines (79 loc) · 3.39 KB
/
settingsGlobalGeneral.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!--
General Global Settings / Preferences
Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
$Id: settingsGlobalGeneral.html 595 2015-04-17 09:50:36Z imoore76 $
-->
<table style='width: 100%' class='vboxVertical'>
<tr style='vertical-align: middle'>
<th><span class='translate'>Default Machine Folder:</span></th>
<td>
<table class="vboxInvisible" style='width: 100%'>
<tr style='vertical-align: top'>
<td style="width: auto; white-space: nowrap;" class="vboxFileFolderInput">
<input type='text' class='vboxText' name='vboxSettingsDefaultMachineFolder' />
<input type="button" class="vboxImgButton" style="background-image: url(images/vbox/select_file_16px.png)"
onClick="vboxSettingsBrowseMachineFolder(this)" />
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan='2'><hr style='width: 100%' class='vboxSeparatorLine'/></td></tr>
<tr style='vertical-align: middle'>
<th><span class='translate'>VRDP Authentication Library:</span></th>
<td>
<table class="vboxInvisible" style='width: 100%'>
<tr style='vertical-align: top'>
<td style="width: auto; white-space: nowrap;" class="vboxFileFolderInput">
<input type='text' class='vboxText' name='vboxSettingsVRDEAuthLibrary' />
<input type="button" class="vboxImgButton" style="background-image: url(images/vbox/select_file_16px.png)"
onClick="vboxSettingsBrowseVRDPAuthLibrary(this)" />
</td>
</tr>
</table>
</td>
</tr>
<tr style='vertical-align: middle' id='vboxAutostartConfigPropsGeneral'>
<th><span class='translate'>Auto-start DB Path:</span></th>
<td>
<input type='text' class='vboxText' name='vboxAutostartConfigDBPath' />
</td>
</tr>
</table>
<script type='text/javascript'>
/* Set Defaults */
document.frmVboxSettings.vboxSettingsDefaultMachineFolder.value = $('#vboxSettingsDialog').data('vboxSystemProperties').defaultMachineFolder;
document.frmVboxSettings.vboxSettingsVRDEAuthLibrary.value = $('#vboxSettingsDialog').data('vboxSystemProperties').VRDEAuthLibrary;
// Autostart config path
if($('#vboxPane').data('vboxConfig').vboxAutostartConfig) {
document.frmVboxSettings.vboxAutostartConfigDBPath.value = $('#vboxSettingsDialog').data('vboxSystemProperties').autostartDatabasePath;
} else {
$('#vboxAutostartConfigPropsGeneral').hide();
}
/* Browsers */
function vboxSettingsBrowseMachineFolder(btn) {
var def = $(btn).siblings('input').first();
vboxFileBrowser($(def).val(),function(f){
if(f) $(def).val(f);
},true,trans('Default Machine Folder:','UIGlobalSettingsGeneral').replace(':',''));
}
function vboxSettingsBrowseVRDPAuthLibrary(btn) {
var def = $(btn).siblings('input').first();
vboxFileBrowser($(def).val(),function(f){
if(f) $(def).val(f);
},false,trans('VRDP Authentication Library:','UIGlobalSettingsGeneral').replace(':',''));
}
/*
*
* Update Data onSave()
*
*/
$('#vboxSettingsDialog').on('save',function(){
$('#vboxSettingsDialog').data('vboxSystemProperties').defaultMachineFolder = document.frmVboxSettings.vboxSettingsDefaultMachineFolder.value;
$('#vboxSettingsDialog').data('vboxSystemProperties').VRDEAuthLibrary = document.frmVboxSettings.vboxSettingsVRDEAuthLibrary.value;
// Autostart config path
if($('#vboxPane').data('vboxConfig').vboxAutostartConfig) {
$('#vboxSettingsDialog').data('vboxSystemProperties').autostartDatabasePath = document.frmVboxSettings.vboxAutostartConfigDBPath.value;
}
});
</script>