jtsage/jquery-mobile-simpledialog — Issue #30: Button id option makes the dialog crash
Author: gonzalorey
Created: 2011-11-29 21:09:44+00:00
State: open

I'm defining the dialog something like this:
```javascript
$(this).simpledialog({
'mode' : 'bool',
'useDialogForceFalse': 'true',
'prompt' : "My Prompt",
'buttons' : {
'Button Label': {
id: "button-id",
click: function (event) {
$.mobile.changePage(delete_ad_href, {transition:"none"});
},
icon: "delete",
theme: "c",
},
}
});
```
With the id option, the javascript returns the following: "Uncaught ReferenceError: idx is not defined"
Without it, it runs perfectly.
How can I solve this, or what am I missing?
Thanks in advance, really cool plugin!