summaryrefslogtreecommitdiff
path: root/js/ui.js
diff options
context:
space:
mode:
authorJoel Martin <jmartin@sentryds.com>2011-08-25 12:24:52 -0500
committerJoel Martin <jmartin@sentryds.com>2011-08-25 12:24:52 -0500
commit65edee7696dc40dbc3e1a068c7767257be1f6bd1 (patch)
treeb7e54cd8a149b4ad3ceaeacc41987e51aeee2d5f /js/ui.js
parent1d7af907209f3f1e3a7bad40ff9413b358d2c206 (diff)
downloadnovnc-html5-test.tar.gz
Fix menu. Add web-socket-js and websockify.html5-test
Diffstat (limited to 'js/ui.js')
-rw-r--r--js/ui.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/ui.js b/js/ui.js
index d0493ae..f52bebf 100644
--- a/js/ui.js
+++ b/js/ui.js
@@ -19,22 +19,21 @@ load: function() {
var html = '', i, sheet, sheets, llevels;
// Stylesheet selection dropdown
- html += ' <li><select id="noVNC_stylesheet" name="vncStyle">';
- html += ' <option value="default">default</option>';
+ html = ' <option value="default">default</option>';
sheet = WebUtil.selectStylesheet();
sheets = WebUtil.getStylesheets();
for (i = 0; i < sheets.length; i += 1) {
html += '<option value="' + sheets[i].title + '">' + sheets[i].title + '</option>';
}
- html += ' </select> Style</li>';
+ $D('noVNC_stylesheet').innerHTML = html;
// Logging selection dropdown
- html += ' <li><select id="noVNC_logging" name="vncLogging">';
+ html = '';
llevels = ['error', 'warn', 'info', 'debug'];
for (i = 0; i < llevels.length; i += 1) {
html += '<option value="' + llevels[i] + '">' + llevels[i] + '</option>';
}
- html += ' </select> Logging</li>';
+ $D('noVNC_logging').innerHTML = html;
// Settings with immediate effects
UI.initSetting('logging', 'warn');