mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-03 13:00:51 +02:00
660a1bbe01
* call App.handlerpcjson() automatically on json request (if possible) * show net/log indicators in prefs
22 lines
506 B
JavaScript
22 lines
506 B
JavaScript
/* global dijit, dojo, Plugins, xhr, __ */
|
|
|
|
Plugins.Psql_Trgm = {
|
|
showRelated: function (id) {
|
|
const dialog = new dijit.Dialog({
|
|
title: __("Related articles"),
|
|
content: __("Loading, please wait...")
|
|
});
|
|
|
|
const tmph = dojo.connect(dialog, "onShow", null, function (/* e */) {
|
|
dojo.disconnect(tmph);
|
|
|
|
xhr.post("backend.php", {op: 'pluginhandler', plugin: 'af_psql_trgm', method: 'showrelated', id: id}, (reply) => {
|
|
dialog.attr('content', reply);
|
|
});
|
|
});
|
|
|
|
dialog.show();
|
|
}
|
|
};
|
|
|