I am trying to implement an Alert Dialog in my program. I have included the code I am using below. For some reason when I run my program and initiate the action to bring up the alertDialog I see THREE buttons instead of two. 1- remove location, 2 - Cancel, 3 - is just blank. I can not find out the source of this blank button. If I add an additional button the blank button just gets moved down.
I'm looking for ideas thanks!
CODE
PROG.alertDialog({
title: $_('remove_location'),
message: 'Are you sure you want to remove "' + this.locationName + '"?',
buttons: [
{
label: $_('remove_location'),
callback: function(config) {
// STUFF DONE HERE
}
},
{
label: 'Cancel'
}
]
}).fire();