ttrss/plugins/share/share_prefs.js

17 lines
363 B
JavaScript
Raw Normal View History

function clearArticleAccessKeys() {
2018-11-30 10:05:59 +00:00
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
2018-12-02 17:56:30 +00:00
Notify.progress("Clearing URLs...");
2018-11-30 12:23:48 +00:00
const query = { op: "pluginhandler", plugin: "share", method: "clearArticleKeys" };
2018-11-30 12:23:48 +00:00
xhrPost("backend.php", query, () => {
2018-12-02 17:56:30 +00:00
Notify.info("Shared URLs cleared.");
2018-11-30 12:23:48 +00:00
});
}
return false;
}