Skip to content

Commit

Permalink
Added confirm question as the third param to the confirm() function
Browse files Browse the repository at this point in the history
  • Loading branch information
HTMLGuyLLC committed Jul 9, 2019
1 parent 16ef547 commit 7236feb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/jAlert-functions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jAlert",
"version": "4.7.0",
"version": "4.8.0",
"description": "Simple jQuery (Modal | Popup | Lightbox | Alert) Plugin",
"repository": {
"type": "git",
Expand All @@ -18,4 +18,4 @@
"type": "MIT",
"url": "https://www.opensource.org/licenses/mit-license.php"
}
}
}
4 changes: 2 additions & 2 deletions src/jAlert-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function alert(title, msg){
}

/* Optional: Overwrites javascript's built-in confirm function (DANGER: operates differently - returns true every time and doesn't stop execution!) - You must provide a callback */
function confirm(confirmCallback, denyCallback)
function confirm(confirmCallback, denyCallback, confirmQuestion)
{
$.jAlert({'type': 'confirm', 'onConfirm': confirmCallback, 'onDeny': denyCallback });
$.jAlert({'type': 'confirm', 'confirmQuestion':confirmQuestion, 'onConfirm': confirmCallback, 'onDeny': denyCallback });
}

/* Optional Alert shortcuts based on color */
Expand Down

0 comments on commit 7236feb

Please sign in to comment.