init.js 490 B

12345678910111213141516171819202122232425
  1. function showTrgmRelated(id) {
  2. try {
  3. var query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated&param=" + param_escape(id);
  4. if (dijit.byId("trgmRelatedDlg"))
  5. dijit.byId("trgmRelatedDlg").destroyRecursive();
  6. dialog = new dijit.Dialog({
  7. id: "trgmRelatedDlg",
  8. title: __("Related articles"),
  9. style: "width: 600px",
  10. execute: function() {
  11. },
  12. href: query,
  13. });
  14. dialog.show();
  15. } catch (e) {
  16. exception_error("showTrgmRelated", e);
  17. }
  18. }