summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-09-05 13:41:19 +0400
committerAndrew Dolgov <[email protected]>2010-09-05 13:41:19 +0400
commit84c7b824fb02344e1163f18ba9644187083d2db5 (patch)
treef200f7e930bf93f9c7934d3af1c84286296ffc4f /prefs.js
parentc0793f64a801531486fde2c1fbce63ce3003701e (diff)
use console.log for debugging; improve exception information
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/prefs.js b/prefs.js
index 43e6b28bd..36e4569e4 100644
--- a/prefs.js
+++ b/prefs.js
@@ -544,7 +544,7 @@ function removeSelectedFeeds() {
var query = "?op=pref-feeds&subop=remove&ids="+
param_escape(sel_rows.toString());
- debug(query);
+ console.log(query);
new Ajax.Request("backend.php", {
parameters: query,
@@ -605,7 +605,7 @@ function purgeSelectedFeeds() {
var query = "?op=rpc&subop=purge&ids="+
param_escape(sel_rows.toString()) + "&days=" + pr;
- debug(query);
+ console.log(query);
new Ajax.Request("prefs.php", {
parameters: query,
@@ -951,7 +951,7 @@ function editSelectedFeeds() {
function piggie(enable) {
if (enable) {
- debug("I LOVEDED IT!");
+ console.log("I LOVEDED IT!");
var piggie = $("piggie");
Element.show(piggie);
@@ -1050,7 +1050,7 @@ function selectTab(id, noupdate, subop) {
if (!noupdate) {
- debug("selectTab: " + id + "(NU: " + noupdate + ")");
+ console.log("selectTab: " + id + "(NU: " + noupdate + ")");
notify_progress("Loading, please wait...");
@@ -1135,18 +1135,18 @@ function backend_sanity_check_callback2(transport) {
return fatalError(error_code, reply.getAttribute("error-msg"));
}
- debug("sanity check ok");
+ console.log("sanity check ok");
var params = reply.nextSibling;
if (params) {
- debug('reading init-params...');
+ console.log('reading init-params...');
var param = params.firstChild;
while (param) {
var k = param.getAttribute("key");
var v = param.getAttribute("value");
- debug(k + " => " + v);
+ console.log(k + " => " + v);
init_params[k] = v;
param = param.nextSibling;
}
@@ -1206,7 +1206,7 @@ function init() {
if (getURLParam('debug')) {
Element.show("debug_output");
- debug('debug mode activated');
+ console.log('debug mode activated');
}
loading_set_progress(30);
@@ -1232,7 +1232,7 @@ function validatePrefsReset() {
var query = Form.serialize("pref_prefs_form");
query = query + "&subop=reset-config";
- debug(query);
+ console.log(query);
new Ajax.Request("backend.php", {
parameters: query,
@@ -1370,7 +1370,7 @@ function pref_hotkey_handler(e) {
}
if (!hotkeys_enabled) {
- debug("hotkeys disabled");
+ console.log("hotkeys disabled");
return;
}
@@ -1387,7 +1387,7 @@ function pref_hotkey_handler(e) {
cmdline.innerHTML = keychar;
Element.show(cmdline);
- debug("KP: PREFIX=" + keycode + " CHAR=" + keychar);
+ console.log("KP: PREFIX=" + keycode + " CHAR=" + keychar);
return;
}
@@ -1410,7 +1410,7 @@ function pref_hotkey_handler(e) {
if (keycode == 68 && shift_key) { // d
if (!Element.visible("debug_output")) {
Element.show("debug_output");
- debug('debug mode activated');
+ console.log('debug mode activated');
} else {
Element.hide("debug_output");
}
@@ -1520,9 +1520,9 @@ function pref_hotkey_handler(e) {
}
if (hotkey_prefix) {
- debug("KP: PREFIX=" + hotkey_prefix + " CODE=" + keycode + " CHAR=" + keychar);
+ console.log("KP: PREFIX=" + hotkey_prefix + " CODE=" + keycode + " CHAR=" + keychar);
} else {
- debug("KP: CODE=" + keycode + " CHAR=" + keychar);
+ console.log("KP: CODE=" + keycode + " CHAR=" + keychar);
}
} catch (e) {
@@ -1717,7 +1717,7 @@ function validatePrefsSave() {
var query = Form.serialize("pref_prefs_form");
query = query + "&subop=save-config";
- debug(query);
+ console.log(query);
new Ajax.Request("backend.php", {
parameters: query,