summaryrefslogtreecommitdiffstats
path: root/etherpad/src/plugins/urlIndexer
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad/src/plugins/urlIndexer')
-rw-r--r--etherpad/src/plugins/urlIndexer/hooks.js7
-rw-r--r--etherpad/src/plugins/urlIndexer/main.js3
2 files changed, 8 insertions, 2 deletions
diff --git a/etherpad/src/plugins/urlIndexer/hooks.js b/etherpad/src/plugins/urlIndexer/hooks.js
index 45d37f1..e0ff050 100644
--- a/etherpad/src/plugins/urlIndexer/hooks.js
+++ b/etherpad/src/plugins/urlIndexer/hooks.js
@@ -41,4 +41,9 @@ function padModelWriteToDB(args) {
sqlobj.insert("PAD_URL", {PAD_ID: args.padId, URL: new_urls[i]});
}
}
-} \ No newline at end of file
+}
+
+function docbarItemsTagBrowser() {
+ return ["<td class='docbarbutton'><a href='/ep/url/'>URLs</a></td>"];
+}
+
diff --git a/etherpad/src/plugins/urlIndexer/main.js b/etherpad/src/plugins/urlIndexer/main.js
index 0b2847f..18bdef1 100644
--- a/etherpad/src/plugins/urlIndexer/main.js
+++ b/etherpad/src/plugins/urlIndexer/main.js
@@ -4,10 +4,11 @@ import("sqlbase.sqlobj");
import("sqlbase.sqlcommon");
function init() {
- this.hooks = ['padModelWriteToDB', 'handlePath'];
+ this.hooks = ['padModelWriteToDB', 'handlePath', 'docbarItemsTagBrowser'];
this.description = 'Indexes URLs linked to in pads so that they can be displayed outside pads, searched for etc.';
this.padModelWriteToDB = hooks.padModelWriteToDB;
this.handlePath = hooks.handlePath;
+ this.docbarItemsTagBrowser = hooks.docbarItemsTagBrowser;
this.install = install;
this.uninstall = uninstall;