PDA

View Full Version : Howto right Show fancybox on ExtGRIP newbutton...



softm
26 Jan 2011, 5:22 PM
I have Grid. Which have toolbar button.


tbar: [{
text: 'Add Record',
iconCls: 'silk-add',
handler : function(){
$(".popwin").click();
$(".popwin").unbind();
}
}


After this after i made any request in fancybox, like this:


$.post(
"/answer.php?act=newprofilego",
params,
function(data){

if ( data.success == false )
{
$('#error-messages').html(data.message);
return false;
}
else
{
parent.store.reload();
$.fancybox.close();
}
});


It makes this request TWO times! And do not close fancybox.
Pls helpme, as i understood fancy box, that i show cant
catch that is runned from EXT.


Help me please activate fancybox from EXT toolbar button!.

Thanks.