diff options
author | Marcel Klehr <mklehr@gmx.net> | 2013-03-26 15:11:30 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2013-03-26 15:11:30 +0100 |
commit | 638cea5fd65cb0845cbb290bcaf6630ffea76a24 (patch) | |
tree | 6fe1137ffa55f08250aa9522d7e2537157c11e30 /src/node/hooks/express/adminplugins.js | |
parent | 981a33f01ef1c1b66a03abdc971d9bd35669b412 (diff) | |
download | etherpad-lite-638cea5fd65cb0845cbb290bcaf6630ffea76a24.zip |
Install and uninstall plugins with style
- Don't block the whole page when installing a plugin
- allow people to search and install other plugins meanwhile
Why? http://i.imgur.com/XoX6uYS.jpg
Diffstat (limited to 'src/node/hooks/express/adminplugins.js')
-rw-r--r-- | src/node/hooks/express/adminplugins.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/hooks/express/adminplugins.js b/src/node/hooks/express/adminplugins.js index 3ef34115..611a6b14 100644 --- a/src/node/hooks/express/adminplugins.js +++ b/src/node/hooks/express/adminplugins.js @@ -85,14 +85,14 @@ exports.socketio = function (hook_name, args, cb) { socket.on("install", function (plugin_name) { installer.install(plugin_name, function (er) { if(er) console.warn(er) - socket.emit("finished:install", {error: er? er.message : null}); + socket.emit("finished:install", {plugin: plugin_name, error: er? er.message : null}); }); }); socket.on("uninstall", function (plugin_name) { installer.uninstall(plugin_name, function (er) { if(er) console.warn(er) - socket.emit("finished:uninstall", {error: er? er.message : null}); + socket.emit("finished:uninstall", {plugin: plugin_name, error: er? er.message : null}); }); }); }); |