Medium Style Confirm
Demos
mscConfirm(title, okCallback)
mscConfirm("Delete?",function(){ alert("Post deleted"); });
mscConfirm(title, subtitle, okCallback)
mscConfirm("Delete", "Are you sure you want to delete this post?", function(){ alert("Post deleted"); });
mscConfirm(title, subtitle, okCallback, cancelCallback)
mscConfirm("Delete", "Are you sure you want to delete this post?", function(){ alert("Post deleted"); }, function() { alert('Cancelled'); });
mscConfirm(object)
mscConfirm({ title: 'License', subtitle: 'Do you accept the licese agreement?', // default: '' okText: 'I Agree', // default: OK cancelText: 'I Dont', // default: Cancel onOk: function() { alert('Awesome.'); }, onCancel: function() { alert('Sad face :( .'); } });