Handle browsers that don't have console.debug.
diff --git a/edit.html b/edit.html
index 78ec492..b70e6d2 100644
--- a/edit.html
+++ b/edit.html
@@ -74,7 +74,6 @@
function updateUrl() {
var url = formToUrl();
- console.debug('url is', url);
$('#viewurl a').attr('href', url).text(url);
if (tmo) {
clearTimeout(tmo);
diff --git a/render.js b/render.js
index 196f3c0..f9504c9 100644
--- a/render.js
+++ b/render.js
@@ -1,6 +1,13 @@
"use strict";
+// Mostly for konqueror compatibility
+if (!window.console) {
+ var console = {};
+ console.debug = function() {};
+}
+
+
function err(s) {
$('#vizlog').append('\n' + s);
}
@@ -959,6 +966,7 @@
} catch (e) {
$('#vizchart').hide();
$('#viztable').hide();
+ $('#vizstatus').css('position', 'relative');
$('.vizstep').show();
err(e);
err("<p><a href='/help'>here's the documentation</a>");
@@ -983,7 +991,6 @@
error: wrap(gotError, url),
complete: wrap(gotComplete)
});
- $('body').append('<script>console.debug("query done");</script>');
var editlink = args.get('editlink');
if (editlink == 0) {
$('#editmenu').hide();