;(function($, undefined) { var pluginName = 'czf_modal'; function Modal(options) { this.options = $.extend({}, $.fn[pluginName].defaults, options); this.$modal = $(this.options.target).attr('class', 'modal fade').hide(); var self = this; function init() { if (self.options.title === '') { self.options.title = ' '; } }; init(); } $.extend(Modal.prototype, { show: function() { var self = this ,$backdrop; if (!this.options.nobackdrop) { $backdrop = $('.modal-backdrop'); } if (!this.$modal.length) { var mdstr = ''; //mdstr += '
'; this.$modal = $(mdstr).appendTo(this.options.appendTo).hide(); //this.$modal = $('