diff options
author | Heiko Adams <[email protected]> | 2015-11-30 10:29:44 +0100 |
---|---|---|
committer | Heiko Adams <[email protected]> | 2015-11-30 10:29:44 +0100 |
commit | 05761788b7b5a8a7e6c14333669acd0793886223 (patch) | |
tree | 464ccc3d98900e5dcf1a437662056161fa1280a4 /plugins/af_sort_bayes/init.js | |
parent | 635ecdb9fa039adb8a0e8ead045bfda023e72bc4 (diff) | |
parent | 6f5d9c6889b6376527d7598857ac8816cf7980ab (diff) |
Merge remote-tracking branch 'origin/master' into german-translation
Diffstat (limited to 'plugins/af_sort_bayes/init.js')
-rw-r--r-- | plugins/af_sort_bayes/init.js | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/plugins/af_sort_bayes/init.js b/plugins/af_sort_bayes/init.js deleted file mode 100644 index bb6bf5954..000000000 --- a/plugins/af_sort_bayes/init.js +++ /dev/null @@ -1,81 +0,0 @@ -function bayesTrain(id, train_up, event) { - try { - - event.stopPropagation(); - - var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=trainArticle&article_id=" + param_escape(id) + - "&train_up=" + param_escape(train_up); - - notify_progress("Loading, please wait..."); - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - notify(transport.responseText); - updateScore(id); - } }); - - } catch (e) { - exception_error("showTrgmRelated", e); - } -} - -function bayesClearDatabase() { - try { - - if (confirm(__("Clear classifier database?"))) { - - var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=clearDatabase"; - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function (transport) { - notify(transport.responseText); - bayesUpdateUI(); - } - }); - } - - } catch (e) { - exception_error("showTrgmRelated", e); - } -} - -function bayesUpdateUI() { - try { - - var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=renderPrefsUI"; - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function (transport) { - dijit.byId("af_sort_bayes_prefs").attr("content", transport.responseText); - } - }); - - } catch (e) { - 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); - } -} - - |