Is it possible to maximize and restore a window/dialogue on double-clicking the title bar of the window/the dialogue?
For example, my not so great assumption:
onDoubleClickTitle:function(){
var ptitle = $(this).panel('options').title;
if(ptitle.hasClass('panel-tool-max'){
$(this).panel('maximize');
}else{
$(this).panel('restore');
}
}