1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:45:56 +00:00

add clear sql log button

This commit is contained in:
Andrew Dolgov
2013-04-29 23:12:54 +04:00
parent 39ede9862f
commit 52e7b5a096
2 changed files with 25 additions and 0 deletions

View File

@@ -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();
} });
}
}