1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:15:57 +00:00

add basic classifier information window

This commit is contained in:
Andrew Dolgov
2015-06-18 18:30:05 +03:00
parent 5a45821ec9
commit 168e32b946
2 changed files with 81 additions and 1 deletions

View File

@@ -57,3 +57,25 @@ function bayesUpdateUI() {
exception_error("showTrgmRelated", e);
}
}
function bayesShow(id) {
try {
if (dijit.byId("bayesShowDlg"))
dijit.byId("bayesShowDlg").destroyRecursive();
var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=showArticleStats&article_id=" + param_escape(id);
dialog = new dijit.Dialog({
id: "bayesShowDlg",
title: __("Classifier information"),
style: "width: 600px",
href: query});
dialog.show();
} catch (e) {
exception_error("shareArticle", e);
}
}