PDA

View Full Version : beforeclose event on TabPanelItem



tarikonen
23 Oct 2007, 3:08 AM
In my main page i have this initialization code:

[CODE]
var confirmRemove = function confirmRemove(region, panel, e){
if (true){
Ext.Msg.confirm('Attenzione','Il documento ' + panel.title + '

tarikonen
24 Oct 2007, 4:26 AM
Hi have found the solution

[CODE]
var confirmRemove = function confirmRemove(region, panel, e)
{
//panel.getEl().dom.contentWindow.document.getElementById('Codice').value;
if (panel.getEl().dom.contentWindow.isDocBeingEdited)
{
Ext.Msg.confirm('Attenzione','Il documento ' + panel.title + '