Aug 18, 2010, 3:44 PM
[CLOSED] Button event firing twice?
Hi Guys,
I have a simple one for you. It's a simple Msg box, that has an OK button. Once the user presses the OK button, that triggers the "fn" (function), which does a "notification" with some extra information.
The thing is...when I hit OK on the Msg box, the function gets fired twice, so I get TWO notification boxes.
ideas?
thanks,
Dan
I have a simple one for you. It's a simple Msg box, that has an OK button. Once the user presses the OK button, that triggers the "fn" (function), which does a "notification" with some extra information.
The thing is...when I hit OK on the Msg box, the function gets fired twice, so I get TWO notification boxes.
ideas?
thanks,
Dan
Ext.Msg.show({
title : 'Project Added to Map',
msg : 'Your project has successfully been added to the map!',
width : 300,
buttons : Ext.MessageBox.OK,
fn:function(btn, text) {
Ext.net.Notification.show({
iconCls : 'icon-information',
//pinEvent : 'click',
//icon : Ext.Notification.INFO,
html : "People can also search for your project through the Climate 1-Stop!",
title : 'Project Entry Also Added',
hideDelay:7000
});
// Ext.Msg.notify("Project Entry Also Added", "People can also search for your project through the Climate 1-Stop!");
},
icon : Ext.MessageBox.INFO
})
Last edited by Daniil; Aug 18, 2010 at 3:45 PM.
Reason: Please use [code] tags