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') 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