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
2013-06-26 10:56:09 -07:00
parent 6efb7b8bde
commit 6f33d188fd
3 changed files with 32 additions and 11 deletions

View File

@@ -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() {