diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-03-01 18:45:02 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-03-01 18:45:02 +0100 |
commit | 73aa0687b8cd696ded66208f5550d83c2a62739c (patch) | |
tree | 2e3a8189d8a07684807aefa28af2064e439e614c /available_plugins | |
parent | 35626df77bd6f9ad90eda7a82c16cb021738b04b (diff) | |
download | etherpad-lite-73aa0687b8cd696ded66208f5550d83c2a62739c.zip |
Client side hooks are now loaded and works
Diffstat (limited to 'available_plugins')
-rw-r--r-- | available_plugins/ep_fintest/ep.json | 3 | ||||
-rw-r--r-- | available_plugins/ep_fintest/static/js/test.js | 4 |
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 |