mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:15:56 +00:00
add clear sql log button
This commit is contained in:
18
js/prefs.js
18
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();
|
||||
} });
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user