From 85bbccebb7a3145b1c7a052d67b3f7ef976f8274 Mon Sep 17 00:00:00 2001 From: alexhudson Date: Thu, 24 Jan 2008 08:59:39 +0000 Subject: [PATCH] Fix up two JS errors which get the composer working again --- src/www/js/Dragonfly.js | 7 ++++--- src/www/js/lib/MochiKit/Async.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/www/js/Dragonfly.js b/src/www/js/Dragonfly.js index 89696f1..edc9835 100644 --- a/src/www/js/Dragonfly.js +++ b/src/www/js/Dragonfly.js @@ -974,9 +974,10 @@ Dragonfly.start = function () // Don't use showElement - not nice to non-divs $('admin-link').style.display = 'inline'; } - - $('makeDumpLink-a').href = 'javascript:void(console.sendLog("user/' + d.userName + '/sendlog/all", true));'; - + + if ($('makeDumpLink-a')) { + $('makeDumpLink-a').href = 'javascript:void(console.sendLog("user/' + d.userName + '/sendlog/all", true));'; + } removeElementClass (document.body, 'login'); d._handleResize(); diff --git a/src/www/js/lib/MochiKit/Async.js b/src/www/js/lib/MochiKit/Async.js index 4a57088..d06631c 100644 --- a/src/www/js/lib/MochiKit/Async.js +++ b/src/www/js/lib/MochiKit/Async.js @@ -220,7 +220,7 @@ MochiKit.Async.Deferred.prototype = { if (!(err instanceof Error)) { err = new MochiKit.Async.GenericError(err); } - logError ('Error firing Deferred: ', err.message); + console.error ('Error firing Deferred: ', err.message); res = err; } }