summaryrefslogtreecommitdiff
path: root/available_plugins
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2012-03-01 18:45:02 +0100
committerEgil Moeller <egil.moller@freecode.no>2012-03-01 18:45:02 +0100
commit73aa0687b8cd696ded66208f5550d83c2a62739c (patch)
tree2e3a8189d8a07684807aefa28af2064e439e614c /available_plugins
parent35626df77bd6f9ad90eda7a82c16cb021738b04b (diff)
downloadetherpad-lite-73aa0687b8cd696ded66208f5550d83c2a62739c.zip
Client side hooks are now loaded and works
Diffstat (limited to 'available_plugins')
-rw-r--r--available_plugins/ep_fintest/ep.json3
-rw-r--r--available_plugins/ep_fintest/static/js/test.js4
2 files changed, 7 insertions, 0 deletions
diff --git a/available_plugins/ep_fintest/ep.json b/available_plugins/ep_fintest/ep.json
index aec7d9c1..f9e91491 100644
--- a/available_plugins/ep_fintest/ep.json
+++ b/available_plugins/ep_fintest/ep.json
@@ -26,6 +26,9 @@
"somehookname": "ep_fintest/otherpart:somehook",
"morehook": "ep_fintest/otherpart:morehook",
"expressCreateServer": "ep_fintest/otherpart:expressServer"
+ },
+ "client_hooks": {
+ "somehookname": "ep_fintest/static/js/test:bar"
}
}
]
diff --git a/available_plugins/ep_fintest/static/js/test.js b/available_plugins/ep_fintest/static/js/test.js
index 7dc8e61a..22d58cc2 100644
--- a/available_plugins/ep_fintest/static/js/test.js
+++ b/available_plugins/ep_fintest/static/js/test.js
@@ -1 +1,5 @@
exports.foo = 42;
+
+exports.bar = function (hook_name, args, cb) {
+ return cb(["FOOOO"]);
+} \ No newline at end of file