how can I add a function to Bootstraps Modal?
e.g. I want to call:
mymodal.info("foo");
but this funtion obviously doesn't exist for the modal object.
I've included the bootstrap.js and tried to add the function like:
$.fn.modal.prototype.info = function (msg) {
// test:
console.log(msg);
}
in a scripts.js (included after bootstrap.js). But this doesn't work...