diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-04-20 21:00:41 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-04-20 21:00:41 +0200 |
commit | 0b4ed7432d750f98aa6f62e5515b57f3e7e8a4d4 (patch) | |
tree | 75e9a3cd5b5cd75f6d1f2cbed9773bd8b042a200 /etherpad/src/plugins/urlIndexer | |
parent | bd2190f0453f6a189b84b3ff2f1af05d5e023801 (diff) | |
download | etherpad-0b4ed7432d750f98aa6f62e5515b57f3e7e8a4d4.tar.gz etherpad-0b4ed7432d750f98aa6f62e5515b57f3e7e8a4d4.tar.bz2 etherpad-0b4ed7432d750f98aa6f62e5515b57f3e7e8a4d4.zip |
Home & pad/url search buttons
Diffstat (limited to 'etherpad/src/plugins/urlIndexer')
-rw-r--r-- | etherpad/src/plugins/urlIndexer/hooks.js | 7 | ||||
-rw-r--r-- | etherpad/src/plugins/urlIndexer/main.js | 3 |
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; |