curiouswebster
asked on
jquery modal plug-in not really modal
The following is the first few lines of my jquery plug-in.
It creates the modal dialog, but when the user clicks the shaded webpage [that contains the plug-in], the pop-up disappears.
How do I make any click outside the plug-in's pop-up get ignored?
Thanks
It creates the modal dialog, but when the user clicks the shaded webpage [that contains the plug-in], the pop-up disappears.
How do I make any click outside the plug-in's pop-up get ignored?
Thanks
(function ($, window, document, undefined) {
window.wsi = window.wsi || {};
window.wsi.widgets = window.wsi.widgets || {};
self.tabDirtyId = undefined;
self.tabClickedId = undefined;
var configSelectorDialog = function (element, options) {
this.element = element;
this.options = $.extend({}, this.defaults, options);
};
configSelectorDialog.prototype = {
// defaults: defines default values for user options
defaults: {
title: '',
customerStationCatalogListType: '',
maxNbrLists: 0, /*optional*/
maxNbrSites: 0, /*optional*/
onDone: function () { } /*optional*/
},
init: function () {
this.create();
}
};
ASKER
I forgot to say, I use Bootstrap.
Is there a Bootstrap event I should use instead for this?
Is there a Bootstrap event I should use instead for this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
You are welcome.
$("#dialog").dialog({
beforeClose: function(){
return false;
}
});