]> git.wh0rd.org Git - tt-rss.git/commitdiff
trgm: add disabled for now button part (add missing files)
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 12:12:40 +0000 (15:12 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 12:12:40 +0000 (15:12 +0300)
plugins/af_psql_trgm/button.png [new file with mode: 0644]
plugins/af_psql_trgm/init.js [new file with mode: 0644]

diff --git a/plugins/af_psql_trgm/button.png b/plugins/af_psql_trgm/button.png
new file mode 100644 (file)
index 0000000..9b3422c
Binary files /dev/null and b/plugins/af_psql_trgm/button.png differ
diff --git a/plugins/af_psql_trgm/init.js b/plugins/af_psql_trgm/init.js
new file mode 100644 (file)
index 0000000..8affb72
--- /dev/null
@@ -0,0 +1,25 @@
+function showTrgmRelated(id) {
+       try {
+
+               var query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated&param=" + param_escape(id);
+
+               if (dijit.byId("editNoteDlg"))
+                       dijit.byId("editNoteDlg").destroyRecursive();
+
+               dialog = new dijit.Dialog({
+                       id: "editNoteDlg",
+                       title: __("Related articles"),
+                       style: "width: 600px",
+                       execute: function() {
+
+                       },
+                       href: query,
+               });
+
+               dialog.show();
+
+       } catch (e) {
+               exception_error("showTrgmRelated", e);
+       }
+}
+