/*! * ================================================= * bootstrap-confirm * ================================================= * * Description: Modal dialog confirmation and message based on bootstrap v3. * Url: https://github.com/hugosbg/bootstrap-confirm * Version: 1.0 * License: MIT * Author: Hugo Sóstenes */ ;(function($) { 'use strict'; $.confirm = function(options) { if ($.fn.modal === undefined) throw new Error('bootstrap-confirm JavaScript requires Bootstrap.js'); var settings = $.extend({ onInit: function() {}, onOk: function() {}, onCancel: function() {} }, $.confirm.defaults, options), dialogClose = '', buttonOk = '', buttonCancel = '', dialogFooter = '', $dialog = $('