Display errors in red.

This commit is contained in:
Michael Jumper committed 2013-10-16 16:38:09 -07:00
1 parent 76049fbc38
commit 47dcada639
3 files changed
+47 -2

No files matched your search

@@ -1100,9 +1100,9 @@ GuacUI.Client.attach = function(guac) {
var offset = 0;
// Invalidate stream on all errors
stream.onerror = function() {
stream.onerror = function(text, code) {
valid = false;
// TODO: Update notification with error status
upload.showError(text);
};
// Continue upload when acknowledged
@@ -1133,6 +1133,12 @@ GuacUI.Client.attach = function(guac) {
};
// Close dialog and abort when close is clicked
upload.onclose = function() {
GuacUI.Client.notification_area.removeChild(upload.getElement());
// TODO: Abort transfer
};
};
reader.readAsArrayBuffer(file);