Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Deal with no argument passed. #73

Merged
merged 3 commits into from
Oct 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions jquery.confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
* @param [e] {Event}
*/
$.confirm = function (options, e) {
// Log error and exit when no options.
if (typeof options == "undefined") {
console.error("No options given.");
return;
}

// Do nothing when active confirm modal.
if ($('.confirmation-modal').length > 0)
return;
Expand Down