// tab is about to open this.interior.setVisible(true); this.top.setBGColor(0xE2E4DF); this.top.tline.setBGColor(0xB8B9B5) this.top.bline.setBGColor(0xFDFFFF) this.top.arrowref.animate("rotation",90,333,true); //tab is about to close this.top.setBGColor(0xEEF0EB); this.top.tline.setBGColor(0xFDFFFF) this.top.bline.setBGColor(0xC6C7C4) this.top.arrowref.animate("rotation",-90,333,true); //tab is closed this.interior.setVisible(false); // ugh - tabslider doesn't support closing tabs yet this.parent.openTab(this.parent,true); txt.setText(t); var tempDP = dupePointer.DP; myenter.setAttribute( "active" ,true ); this.datapath.updateData(); myenter.setAttribute( "active" ,false ); if (!attrs) return; if (!attrs.hour) return; var h = attrs.hour; if (h=="") return; var m = attrs[ 'minute' ]; if (Number(m)==0 || m==null) m='0'; if (Number(m)<10) m='0'+m; var ap='a'; if (h > 11) ap='p'; if (h > 12) h-=12; return h+':'+m+ap; this.setText( parent.getLongTime( attrs )); to this.setText( parent.getLongTime( attrs )); this.setWindowTitle( "Event Info" ); this.closeDel = new LzDelegate( this , "close" ); this.completeInstantiation(); if ( this['awaitingClose'] ){ this.awaitingClose = false; LzTimer.removeTimer( this.closeDel ); } if (this.opened) { LzFocus.setFocus(summary.content.title); return; } calgrid.contract(); this.setVisible(true); this.setOpacity(1); this.slideopen1.doStart(); this.slideopen2.doStart(); LzFocus.setFocus(summary.content.title); this.opened = true; if (! this.opened) { return; } this.awaitingClose = false; slideclose1.doStart(); slideclose2.doStart(); //remove this.opened = false; //debug.write("close_done"); calgrid.expand(); this.setVisible(false); if ( !this.opened ){ return; } this.awaitingClose = true; LzTimer.resetTimer( this.closeDel , 500 );