ep_adminpads2
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -11,5 +11,2 @@ { | ||
"eejsBlock_adminMenu": "ep_adminpads2" | ||
}, | ||
"client_hooks": { | ||
"documentReady": "ep_adminpads2/static/js/admin/pads" | ||
} | ||
@@ -16,0 +13,0 @@ } |
{ | ||
"name": "ep_adminpads2", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Etherpad plugin to list and delete pads in /admin.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,11 +0,9 @@ | ||
let query = { | ||
pattern: '', | ||
offset: 0, | ||
limit: 12, | ||
}; | ||
let total; | ||
$(() => { | ||
let query = { | ||
pattern: '', | ||
offset: 0, | ||
limit: 12, | ||
}; | ||
let total; | ||
exports.documentReady = async (hookName, context) => { | ||
if (context !== 'admin/pads') return; | ||
const basePath = location.pathname.split('/').slice(0, -2).join('/'); // Strip /admin/plugins. | ||
@@ -159,4 +157,2 @@ const socketioPath = `${basePath}/socket.io`; | ||
socket.emit('load'); | ||
search(); | ||
return; | ||
}; | ||
}); |
Sorry, the diff of this file is not supported yet
36762
282