I want to skin my own confirmation dialog using bootstrap modal without having to hook up events and without resorting to any library, except angular or jquery.
Basically, I want to be able to call something like:
if (myConfirm("text")) {
// handle yes
} else {
// handle no
};
myConfirm is supposed to show the modal, wait until either yes or no button was pressed and then return true or false.
What's the best way to do this?
I am not concerned at all about any IE issues.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…