Skip to content

Instantly share code, notes, and snippets.

Embed
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) {
console.log(jpoint);
alert('AROUND: Hello world');
jpoint.proceed(jpoint.args[0]);
}
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
You can’t perform that action at this time.