From f7f69d8eaa18c940478955f60bbe697a569217c5 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 22 Jul 2010 10:26:50 -0500 Subject: [PATCH 1/4] Fix error when cursor Data URI scheme not supported. --- include/default_controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/default_controls.js b/include/default_controls.js index aa42203..b4fdef9 100644 --- a/include/default_controls.js +++ b/include/default_controls.js @@ -218,7 +218,7 @@ clickSettingsMenu: function() { if (Canvas.isCursor()) { DC.updateSetting('cursor'); } else { - DC.updateSettings('cursor', false); + DC.updateSetting('cursor', false); $('VNC_cursor').disabled = true; } DC.updateSetting('stylesheet'); @@ -248,7 +248,7 @@ settingsDisabled: function(disabled) { if (Canvas.isCursor()) { $('VNC_cursor').disabled = disabled; } else { - DefaultControls.updateSettings('cursor', false); + DefaultControls.updateSetting('cursor', false); $('VNC_cursor').disabled = true; } }, From 19463eac1f6910fc2b19870691f31f7ffc783885 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 22 Jul 2010 10:46:50 -0500 Subject: [PATCH 2/4] Fix logging init on first page load (not in cookie). --- include/default_controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/default_controls.js b/include/default_controls.js index b4fdef9..3f245dd 100644 --- a/include/default_controls.js +++ b/include/default_controls.js @@ -105,7 +105,7 @@ load: function(target) { $(target).innerHTML = html; // Settings with immediate effects - DC.initSetting('logging', 'default'); + DC.initSetting('logging', 'warn'); Util.init_logging(DC.getSetting('logging')); DC.initSetting('stylesheet', 'default'); Util.selectStylesheet(DC.getSetting('stylesheet')); From a7a8962676734041b85a96a0eaa70ac4dc35f545 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 22 Jul 2010 10:54:47 -0500 Subject: [PATCH 3/4] JSLint. RFB obj to rfb.js; vnc.js the 'loader'. Move the whole RFB object to rfb.js. vnc.js is now just the loader file. This allows an integrating project to easily replace vnc.js with an alternate loader mechanism (or just do it directly in the html file). Thanks for the idea primalmotion (http://github.com/primalmotion). Also, JSLint the various files. --- include/canvas.js | 34 +- include/default_controls.js | 14 +- include/rfb.js | 1618 +++++++++++++++++++++++++++++++++++ include/util.js | 21 +- include/vnc.js | 1609 +--------------------------------- 5 files changed, 1646 insertions(+), 1650 deletions(-) create mode 100644 include/rfb.js diff --git a/include/canvas.js b/include/canvas.js index be9e7fe..3e049cf 100644 --- a/include/canvas.js +++ b/include/canvas.js @@ -8,21 +8,10 @@ "use strict"; /*jslint white: false, bitwise: false */ -/*global window, $, Util */ +/*global window, $, Util, Base64 */ -var Canvas, Canvas_native; - -(function () { - var pre, start = "