mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Bugfixes
This commit is contained in:
parent
cf2f0b72a3
commit
3338db9485
2 changed files with 31 additions and 1 deletions
|
@ -102,7 +102,7 @@ exports.aCallAll = function (hook_name, args, cb) {
|
||||||
|
|
||||||
exports.callFirst = function (hook_name, args) {
|
exports.callFirst = function (hook_name, args) {
|
||||||
if (!args) args = {};
|
if (!args) args = {};
|
||||||
if (plugins.hooks[hook_name][0] === undefined) return [];
|
if (plugins.hooks[hook_name] === undefined) return [];
|
||||||
return exports.syncMapFirst(plugins.hooks[hook_name], function (hook) {
|
return exports.syncMapFirst(plugins.hooks[hook_name], function (hook) {
|
||||||
return hookCallWrapper(hook, hook_name, args);
|
return hookCallWrapper(hook, hook_name, args);
|
||||||
});
|
});
|
||||||
|
|
30
src/templates/admin/plugins-info.html
Normal file
30
src/templates/admin/plugins-info.html
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<%
|
||||||
|
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
||||||
|
%>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Plugin information</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
||||||
|
<link rel="stylesheet" href="../../static/css/admin.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="wrapper">
|
||||||
|
<h1>Etherpad Lite</h1>
|
||||||
|
<div class="separator"></div>
|
||||||
|
|
||||||
|
<h2>Installed plugins</h2>
|
||||||
|
<pre><%= plugins.formatPlugins() %></pre>
|
||||||
|
|
||||||
|
<h2>Installed parts</h2>
|
||||||
|
<pre><%= plugins.formatParts() %></pre>
|
||||||
|
|
||||||
|
<h2>Installed hooks</h2>
|
||||||
|
<h3>Server side hooks</h3>
|
||||||
|
<div><%= plugins.formatHooks() %></div>
|
||||||
|
|
||||||
|
<h3>Client side hooks</h3>
|
||||||
|
<div><%= plugins.formatHooks("client_hooks") %></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue