2012-02-26 15:34:03 +01:00
|
|
|
test = require("ep_fintest/static/js/test.js");
|
2012-02-26 00:59:05 +01:00
|
|
|
console.log("FOOO:", test.foo);
|
|
|
|
|
2012-02-24 20:03:58 +01:00
|
|
|
exports.somehook = function (hook_name, args, cb) {
|
|
|
|
return cb(["otherpart:somehook was here"]);
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.morehook = function (hook_name, args, cb) {
|
|
|
|
return cb(["otherpart:morehook was here"]);
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.expressServer = function (hook_name, args, cb) {
|
|
|
|
args.app.get('/otherpart', function(req, res) {
|
|
|
|
res.send("<em>Abra cadabra</em>");
|
|
|
|
});
|
|
|
|
}
|
2012-03-13 20:32:56 +01:00
|
|
|
|
|
|
|
exports.eejsBlock_editbarMenuLeft = function (hook_name, args, cb) {
|
|
|
|
args.content = args.content + '\
|
|
|
|
<li id="testButton" onClick="window.pad&&pad.editbarClick(\'clearauthorship\');return false;">\
|
|
|
|
<a class="buttonicon buttonicon-test" title="Test test test"></a>\
|
|
|
|
</li>\
|
|
|
|
';
|
|
|
|
return cb();
|
|
|
|
}
|