View Full Version : Messagebox Double Trouble

18 Jul 2011, 9:39 PM
Hi there,

I'm showing a message box when the user selects an item on a list to confirm an action. Everything works fine until I select the same list item again right after the message box was closed (whether by clicking 'yes' or 'no').

I use the following code to show my message box:

title:'Proceed to video?',
msg: list.store.getAt(index).get('description'),
buttons: Ext.MessageBox.YESNO,
fn: this.onWatchVideo,
scope: this

and have a standard function defined within the panel:

onWatchVideo: function(btn)
...handle btn press...

If I click on a list item, dismiss the message box that pops up by either clicking yes or no, and then select another item in the list, the message box for the newly selected item works fine.

When I select the same list item again after dismissing the message box, the yes and no buttons become totally unresponsive.

I've also tried it without the ".doComponentLayout" bit, in case it interferes with the singleton's update in some way.

Thanks in advance for any help,