From 2cbdc95bb00faad46df8976cf9b33e1bc188ec91 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 08:42:39 +0400 Subject: add a separate tab for the logger --- js/prefs.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index b1decede5..8612b70fb 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -852,6 +852,15 @@ function updatePrefsList() { } }); } +function updateSystemList() { + new Ajax.Request("backend.php", { + parameters: "?op=pref-system", + onComplete: function(transport) { + dijit.byId('systemConfigTab').attr('content', transport.responseText); + notify(""); + } }); +} + function selectTab(id, noupdate, method) { try { if (!noupdate) { @@ -867,6 +876,8 @@ function selectTab(id, noupdate, method) { updatePrefsList(); } else if (id == "userConfig") { updateUsersList(); + } else if (id == "systemConfig") { + updateSystemList(); } var tab = dijit.byId(id + "Tab"); -- cgit v1.2.3 From 6bfc97da869ca180d2f5fee01c9ff503cb47b1bd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Apr 2013 10:31:57 +0400 Subject: add automatic timezone (based on client tz offset) --- js/prefs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index 8612b70fb..431a1fe84 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -962,8 +962,11 @@ function init() { dojo.addOnLoad(function() { loading_set_progress(50); + var clientTzOffset = new Date().getTimezoneOffset() * 60; + new Ajax.Request("backend.php", { - parameters: {op: "rpc", method: "sanityCheck"}, + parameters: {op: "rpc", method: "sanityCheck", + clientTzOffset: clientTzOffset }, onComplete: function(transport) { backend_sanity_check_callback(transport); } }); -- cgit v1.2.3 From 52e7b5a096f5d0d7724b6f1731559b237b2c47ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Apr 2013 23:12:54 +0400 Subject: add clear sql log button --- js/prefs.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index 431a1fe84..4346054ef 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -1833,3 +1833,21 @@ function clearPluginData(name) { exception_error("clearPluginData", e); } } + +function clearSqlLog() { + + if (confirm(__("Clear all messages in the error log?"))) { + + notify_progress("Loading, please wait..."); + var query = "?op=pref-system&method=clearLog"; + + new Ajax.Request("backend.php", { + parameters: query, + onComplete: function(transport) { + updateSystemList(); + } }); + + } +} + + -- cgit v1.2.3 From e5e6cde06a79551c42a7821722d33683e0a6829f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 6 May 2013 12:50:52 +0400 Subject: remove support for hiding empty categories in prefs editor because people are dumb --- js/prefs.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index 4346054ef..e226459fc 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -1610,21 +1610,6 @@ function resetCatOrder() { } } -function toggleHiddenFeedCats() { - try { - notify_progress("Loading, please wait..."); - - new Ajax.Request("backend.php", { - parameters: "?op=pref-feeds&method=togglehiddenfeedcats", - onComplete: function(transport) { - updateFeedList(); - } }); - - } catch (e) { - exception_error("toggleHiddenFeedCats"); - } -} - function editCat(id, item, event) { try { var new_name = prompt(__('Rename category to:'), item.name); -- cgit v1.2.3