Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
coreBOS javascript hooks
function massdeleteBeforeHelloWorld(module) { // use the same signature as the function we override
alert('BEFORE: Hello world from ' + module);
function massdeleteAfterHelloWorld(result) { // receives result of the massdelete function
alert('AFTER: Hello world from AFTER massDelete');
function massdeleteAroundHelloWorld(jpoint) {
alert('AROUND: Hello world');
var beforemassdelete = corebosjshook.before(window,'massDelete',massdeleteBeforeHelloWorld);
var aftermassdelete = corebosjshook.after(window,'massDelete',massdeleteAfterHelloWorld);
var onmassdelete = corebosjshook.around(window,'massDelete',massdeleteAroundHelloWorld);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment