(function ($) { $.loadmodal = function (options) { // allow a simple url to be sent as the single option if ($.type(options) == 'string') { options = { url: options, };//options }//if // set the default options options = $.extend(true, { url: null, // a convenience place to specify the url - this is moved into ajax.url id: 'jquery-loadmodal-js', // the id of the modal idBody: 'jquery-loadmodal-js-body', // the id of the modal-body (the dialog content) appendToSelector: 'body', // the element to append the dialog
code to. Normally, this should be left as the 'body' element. title: window.document.title || 'Dialog',// the title of the dialog width: '400px', // 20%, 400px, or other css width dlgClass: 'fade', // CSS class(es) to add to the