Skip to content

Commit 7236feb

Browse files
committed
Added confirm question as the third param to the confirm() function
1 parent 16ef547 commit 7236feb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.DS_Store

0 Bytes
Binary file not shown.

dist/jAlert-functions.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jAlert",
3-
"version": "4.7.0",
3+
"version": "4.8.0",
44
"description": "Simple jQuery (Modal | Popup | Lightbox | Alert) Plugin",
55
"repository": {
66
"type": "git",
@@ -18,4 +18,4 @@
1818
"type": "MIT",
1919
"url": "https://www.opensource.org/licenses/mit-license.php"
2020
}
21-
}
21+
}

src/jAlert-functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ function alert(title, msg){
1212
}
1313

1414
/* 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 */
15-
function confirm(confirmCallback, denyCallback)
15+
function confirm(confirmCallback, denyCallback, confirmQuestion)
1616
{
17-
$.jAlert({'type': 'confirm', 'onConfirm': confirmCallback, 'onDeny': denyCallback });
17+
$.jAlert({'type': 'confirm', 'confirmQuestion':confirmQuestion, 'onConfirm': confirmCallback, 'onDeny': denyCallback });
1818
}
1919

2020
/* Optional Alert shortcuts based on color */

0 commit comments

Comments
 (0)