function dialogue(content, title) { content = $('
', { 'class': 'dialogue clearfix' }).append(content); $.iLightBox([ { URL: content, type: "html", title: (title) ? title : null } ], { skin: 'light ilightbox-dialogue', minScale: 1, innerToolbar: true, overlay: { blur: false }, controls: { fullscreen: false }, callback: { // Hide the iLightBox when any buttons in the dialogue are clicked onRender: function(api) { $('.btn', api.currentElement).click(function(){ $('.btn', api.currentElement).unbind('click'); api.hide(); }); }, // Hide the iLightBox when any buttons in the dialogue are clicked onShow: function(api) { $('.btn-primary', api.currentElement).focus(); } } }); } function videoConfirm(callback){ var message = $('
', { html: '' }), cancel = $('