/*! backbone-bootstrap-modals 0.3.2 http://github.com/leafygreen/backbone-bootstrap-modals Licensed under the MIT license. */ (function (root, factory) { if (typeof define === "function" && define.amd) { // AMD (+ global for extensions) define(["underscore", "backbone"], function (_, Backbone) { return (root.BackboneBootstrapModals = factory(_, Backbone)); }); } else if (typeof exports === "object") { // CommonJS module.exports = factory(require("underscore"), require("backbone")); } else { // Browser root.BackboneBootstrapModals = factory(root._, root.Backbone); }}(this, function (_, Backbone) { "use strict"; // Create Project Namespace var BackboneBootstrapModals = {}; // BaseHeaderView // --------------------------------- // // A simple view representing the modal title and dismiss icon. BackboneBootstrapModals.BaseHeaderView = Backbone.View.extend({ className: 'modal-header', initialize: function (opts) { var options = opts || {}; this.label = options.label || ''; this.labelId = options.labelId || 'myModalLabel'; this.labelTagName = options.labelTagName || 'h4'; this.showClose = (options.showClose !== undefined) ? options.showClose : true; }, render: function() { var $header = Backbone.$('<'+this.labelTagName+'>', { id: this.labelId, class: 'modal-title' }).text(this.label); var $close; if (this.showClose) { $close = Backbone.$('