Fix up two JS errors which get the composer working again

This commit is contained in:
alexhudson
2008-01-24 08:59:39 +00:00
parent d337c3d486
commit 85bbccebb7
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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();
+1 -1
View File
@@ -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;
}
}