|
From: Thyamad c. <th...@us...> - 2006-01-04 16:39:02
|
Update of /cvsroot/thyapi/thyapi/ext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21685/ext Modified Files: debug.js Log Message: Commiting file additions and modification from SVN revision 2546 to 2547... Changes made by frank on 2006-01-04 18:36:55 +0100 (Wed, 04 Jan 2006) corresponding to SVN revision 2547 with message: changing the size of debug window and adding resizeble option to it Index: debug.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/ext/debug.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** debug.js 12 Nov 2005 19:06:27 -0000 1.6 --- debug.js 4 Jan 2006 16:38:50 -0000 1.7 *************** *** 52,56 **** if(this.win.evalIndex<0) this.win.evalIndex=0; t=this.win.evalHistory[this.win.evalIndex]; ! if(t)f.eval.value=t; } }; --- 52,56 ---- if(this.win.evalIndex<0) this.win.evalIndex=0; t=this.win.evalHistory[this.win.evalIndex]; ! if(t)f.eval.value=t; } }; *************** *** 86,97 **** //var url = dynapi.documentPath+p+'ext/debug.html#'; var url = p+'ext/debug.html#'; ! var w = (dynapi.ua.def||dynapi.ua.dom)? 350:355 //dynapi.ua.mac? (dynapi.ua.ie?330:300) : 350; ! var h = (dynapi.ua.def||dynapi.ua.dom)? 432:485 //dynapi.ua.mac? (dynapi.ua.ie?405:365) : (dynapi.ua.def||dynapi.ua.dom)? 420:476; ! this.win = window.open(url,'debugwin','width='+w+',height='+h+',scrollbars=no,status=no,toolbar=no'); //,resizable=no this.win.opener=window; this.win.evalHistory=[]; this.win.evalIndex=0; this.print(); ! /* dynapi.frame.onerror = function(msg, url, lno) { dynapi.debug.error(msg, url, lno); }; --- 86,97 ---- //var url = dynapi.documentPath+p+'ext/debug.html#'; var url = p+'ext/debug.html#'; ! var w = (dynapi.ua.def||dynapi.ua.dom)? 650:655 //dynapi.ua.mac? (dynapi.ua.ie?330:300) : 350; ! var h = (dynapi.ua.def||dynapi.ua.dom)? 732:785 //dynapi.ua.mac? (dynapi.ua.ie?405:365) : (dynapi.ua.def||dynapi.ua.dom)? 420:476; ! this.win = window.open(url,'debugwin','width='+w+',height='+h+',scrollbars=no,status=no,toolbar=no,resizable=yes'); //,resizable=no this.win.opener=window; this.win.evalHistory=[]; this.win.evalIndex=0; this.print(); ! /* dynapi.frame.onerror = function(msg, url, lno) { dynapi.debug.error(msg, url, lno); }; *************** *** 116,120 **** // reloads selected javascripts, packages or html pages p.reload=function(t){ ! if (!this.isLoaded) return; t=t+''; if(t.substr(0,3).toLowerCase()=='go:') { --- 116,120 ---- // reloads selected javascripts, packages or html pages p.reload=function(t){ ! if (!this.isLoaded) return; t=t+''; if(t.substr(0,3).toLowerCase()=='go:') { *************** *** 137,141 **** }; p.reset=function(section){ ! if (!this.isLoaded) return; this._oldWatchSrc=''; if(!section) { --- 137,141 ---- }; p.reset=function(section){ ! if (!this.isLoaded) return; this._oldWatchSrc=''; if(!section) { *************** *** 158,163 **** // Set Mode p.switchMode=function(m){ ! if (!this.isLoaded) return; ! if(m=='watch'||(this._mode=='normal' && m!='normal')) { this._normalModeData = this.win.document.getElementById('print').innerHTML; this._mode='watch'; --- 158,163 ---- // Set Mode p.switchMode=function(m){ ! if (!this.isLoaded) return; ! if(m=='watch'||(this._mode=='normal' && m!='normal')) { this._normalModeData = this.win.document.getElementById('print').innerHTML; this._mode='watch'; *************** *** 165,169 **** }else if(m=='normal'||(this._mode=='watch' && m!='watch')){ this.win.document.getElementById('print').innerHTML=(this._normalModeData)?this._normalModeData:''; ! this._mode='normal'; this._disableWatch(); } --- 165,169 ---- }else if(m=='normal'||(this._mode=='watch' && m!='watch')){ this.win.document.getElementById('print').innerHTML=(this._normalModeData)?this._normalModeData:''; ! this._mode='normal'; this._disableWatch(); } |