Add notification area. Preload images that would otherwise be loaded later, as such a load may fail due to resource starvation.

This commit is contained in:
Michael Jumper committed 2013-07-01 15:01:13 -07:00
1 parent 6efb7b8bde
commit 6f33d188fd
3 files changed
+32 -11

No files matched your search

@@ -50,8 +50,9 @@ GuacUI.Client = {
/* UI Components */
"viewport" : document.getElementById("viewportClone"),
"display" : document.getElementById("display"),
"viewport" : document.getElementById("viewportClone"),
"display" : document.getElementById("display"),
"notification_area" : document.getElementById("notificationArea"),
/* Expected Input Rectangle */
@@ -794,7 +795,7 @@ GuacUI.Client.attach = function(guac) {
var download = new GuacUI.Download(blob.name);
download.updateProgress(getSizeString(0));
document.body.appendChild(download.getElement());
GuacUI.Client.notification_area.appendChild(download.getElement());
// Update progress as data is received
blob.ondata = function() {