jtsage/jquery-mobile-simpledialog — Issue #20: useModal doesn't seem to work
Author: renaissanceGeek
Created: 2011-10-21 17:39:50+00:00
State: open

First of all, thanks for this plug-in--I was getting frustrated with jqm's lack of support for this and having trouble creating my own. But I really need a modal dialog, and this doesn't seem to do it. The background isn't faded out, and everything in the background is still clickable. In fact, you can even click the link that opened the dialog in the first place, which opens another dialog on top of the first.

Maybe I'm doing something wrong, but I'm not sure what. Here's how I call the plug-in:

$(el).simpledialog({
'mode': 'bool',
'prompt': "This action can be performed only in the full desktop version.",
'useDialogForceFalse': true,
'useModal': true,
'forceInput':true,
'buttons': {
'Go to full site': {
click: function ()
{
var url = orgUrl;
gaOptValue = gMobileUtils.extractAction(url);
qb.ga.AddEvent("Unsupported", "Action", gaOptValue, 1);
location.assign(url);
},
theme: "s",
icon: false
},
'Stay on this page': {
click: function ()
{
var url = orgUrl;
gaOptValue = gMobileUtils.extractAction(url);
qb.ga.AddEvent("Unsupported", "Action", gaOptValue, 0);
},
theme: "c",
icon: false
}
}
});