Changeset 76
- Timestamp:
- 09/28/06 21:21:08 (2 years ago)
- Files:
-
- trunk/email-submission/email-reply-template-notfound.txt (modified) (1 diff)
- trunk/email-submission/email-reply-template-toomany.txt (modified) (1 diff)
- trunk/email-submission/email.html (modified) (1 diff)
- trunk/selectxpath.xsl (modified) (2 diffs)
- trunk/stet-intense-shorter.js (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/email-submission/email-reply-template-notfound.txt
r38 r76 36 36 entered in our bug tracker. 37 37 38 (This is the first run of the email interface, which will soon be39 automated, so now would be a particularly good time to point out bugs.)40 41 38 Here is the message you sent us: 42 39 --------- trunk/email-submission/email-reply-template-toomany.txt
r38 r76 46 46 entered in our bug tracker. 47 47 48 (This is the first run of the email interface, which will soon be49 automated, so now would be a particularly good time to point out bugs.)50 51 48 Here is the message you sent us: 52 49 --------- trunk/email-submission/email.html
r51 r76 68 68 into a usable annotation. 69 69 </p> 70 <p>Send your comments to: <a href="mailto:comments@gplv3.fsf.org">comments at gplv3.fsf.org</a></p> 70 <p>Send comments on the GPL draft to: <a href="mailto:gpl-comments@gplv3.fsf.org">gpl-comments at gplv3.fsf.org</a></p> 71 <p>Send comments on the LGPL draft to: <a href="mailto:lgpl-comments@gplv3.fsf.org">lgpl-comments at gplv3.fsf.org</a></p> 72 <p>Send comments on the GFDL draft to: <a href="mailto:gfdl-comments@gplv3.fsf.org">gfdl-comments at gplv3.fsf.org</a></p> 73 <p>Send comments on the GSFDL draft to: <a href="mailto:gsfdl-comments@gplv3.fsf.org">gsfdl-comments at gplv3.fsf.org</a></p> 71 74 </div> 72 75 </html> trunk/selectxpath.xsl
r69 r76 1 <!-- Copyright (C) 2005 Software Freedom Law Center, Inc.1 <!-- Copyright (C) 2005, 2006 Software Freedom Law Center, Inc. 2 2 -- Author: Orion Montoya <orion@mdcclv.com> 3 3 -- … … 35 35 <script type="text/javascript" src="stet-intense-shorter.js"/> 36 36 <script type="text/javascript" language="javascript"> 37 /* for Mozilla */ 38 /* if (document.addEventListener) { 39 document.addEventListener("DOMContentLoaded", initPage(), null); 40 } */ 41 /* for Internet Explorer */ 42 /*@cc_on @*/ 43 /*@if (@_win32) 44 document.write("<script defer src=ie_onload.js><"+"/script>"); 45 /*@end @*/ 46 /* for other browsers */ 47 var OnLoad = 'initPage()'; 48 window.onload = function() {eval(OnLoad)}; 37 window.onload = initPage(); 49 38 </script> 50 39 trunk/stet-intense-shorter.js
r69 r76 34 34 /* ev.initEvent("printfire", false, true); */ 35 35 /* dispatchEvent(ev); */ 36 /* } */36 /* } */ 37 37 } 38 38 … … 46 46 var noMatch = 0; 47 47 function initPage() { 48 // alert("starting initPage, supposedly DOM is loaded"); 49 //alert(document.getElementsByTagName("*").length); 48 50 // quit if this function has already been called 49 51 if (arguments.callee.done) return; … … 54 56 filename = filename.replace(/.xml|.html/,''); 55 57 // printfire('filename is '+filename); 56 if((!filename.length) || (filename.match(/index/)) || (filename.match(/comments $/))|| (filename.match(/comments\/\?/)) || (filename.match(/comments\/#/)) || (filename.match(/debug/) || (filename.match(/classic/)))) {57 filename = ' uncertain';58 if((!filename.length) || (filename.match(/index/)) || (filename.match(/comments?$/))|| (filename.match(/comments?\/\?/)) || (filename.match(/comments?\/#/)) || (filename.match(/debug/) || (filename.match(/classic/)))) { 59 filename = 'gplv3-draft-2'; 58 60 } 59 61 if(window.location.search.length) { … … 76 78 var getUs = ''; 77 79 for (var rtid in ticketObj) { 78 getUs += rtid+':'; 80 if ((rtid != '') && (rtid != 'length')) { 81 getUs += rtid+':'; 82 } 79 83 } 80 84 getnotes(getUs); … … 281 285 } 282 286 var method; 287 req.onreadystatechange = processReqChange; 283 288 if(theData=='') { method="GET"; } 284 289 else { method = "POST"; } … … 286 291 req.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 287 292 req.setRequestHeader('X-Referer',document.location); 288 req.onreadystatechange = processReqChange;289 293 req.send(theData); 290 294 } … … 380 384 resp_arrN = response.getElementsByTagName("ant"); 381 385 if(!!resp_arrN.length && (resp_arrN.length > 0)) { 386 // printfire("doing processAnt"); 382 387 processAnt(response); 383 388 did++; … … 519 524 rtidsBySn = rtnArray[0]; 520 525 rtidsByP = rtnArray[1]; 521 // alert(rtidsBySn.length);526 // printfire("rtidsBySn = "+rtidsBySn); 522 527 highlightSelections(rtidsBySn); 523 528 PLinks(rtidsByP); 524 //addAllLink();525 // unOverlap("annotation",5); // thse won't overlap anymore529 addAllLink(); 530 unOverlap("newannotation",5); // thse won't overlap anymore 526 531 currently('Ready.'); 527 532 } … … 529 534 function addAllLink() { 530 535 if (ticketObj.length < 150) { 531 loadAll();532 var sLnk = document.createElement('a');533 /* sLnk.setAttribute('href','#all'); */ 534 /* sLnk.setAttribute('onClick','loadAll()'); */ 535 sLnk.appendChild(document.createTextNode('[currently showingall]'));536 // loadAll(); 537 var sLnk = document.createElement('a'); 538 sLnk.setAttribute('href','#all'); 539 sLnk.setAttribute('onClick','loadAll()'); 540 sLnk.appendChild(document.createTextNode('[show all]')); 536 541 document.getElementById('statustext').appendChild(document.createTextNode(' ')); 537 542 document.getElementById('statustext').appendChild(sLnk); … … 573 578 if (selections_arr[prI].firstChild) { 574 579 rtids_arr[prI].firstChild.data ? rtid = rtids_arr[prI].firstChild.data : rtid = "error"; 575 // printfire('prI '+prI+',rtid '+rtid);580 //printfire('prI '+prI+',rtid '+rtid); 576 581 if (!ticketObj[rtid]) { ticketObj[rtid] = new Object; ticketObj.length++;} 577 582 ticketObj[rtid].startnode = startnodes_arr[prI].firstChild.data.replace(/note\.[0-9]+\./,'');; … … 581 586 if(!rtidsBySn[ticketObj[rtid].startnode]) { 582 587 rtidsBySn[ticketObj[rtid].startnode] = new Array(rtid); 583 // alert('pushing '+rtid+' to '+ticketObj[rtid].startnode); 588 // printfire('1 pushing '+rtid+' to '+ticketObj[rtid].startnode); 589 //printfire("1 rtidsBySn[ticketObj[rtid].startnode][0] = "+rtidsBySn[ticketObj[rtid].startnode][0]); 584 590 rtidsByP[startp] = new Array(rtid); 585 591 } 586 592 else { 587 // alert('pushing '+rtid+' to '+ticketObj[rtid].startnode);593 // printfire('2 pushing '+rtid+' to '+ticketObj[rtid].startnode); 588 594 rtidsBySn[ticketObj[rtid].startnode].push(rtid); 595 //printfire("2 rtidsBySn[ticketObj[rtid].startnode][0] = "+rtidsBySn[ticketObj[rtid].startnode][0]); 589 596 rtidsByP[startp].push(rtid); 590 597 } … … 600 607 // ah, now it has to be fixed so we can highlight new annots. 601 608 for (var section in rtidsBySn) { 609 //printfire('section is '+section); 610 var sectObj = document.getElementById(section); 602 611 if(document.getElementById(section)) { 603 //printfire('section is '+section);612 //printfire('section is '+section); 604 613 var Selections = new Array(); 605 614 var Rtids = new Array(); … … 748 757 749 758 var pickQueue; 750 if (drafter ) {759 if (drafter.match(/drafter/)) { 751 760 pickQueue = document.createElement('select'); 752 761 pickQueue.setAttribute('name','queue'); … … 766 775 optIssues.appendChild(document.createTextNode('Issues')); 767 776 777 var optComA = document.createElement('option'); 778 optComA.setAttribute('value','CommitteeA'); 779 optComA.setAttribute('selected','selected'); 780 optComA.appendChild(document.createTextNode('CommitteeA')); 781 782 var optComB = document.createElement('option'); 783 optComB.setAttribute('value','CommitteeB'); 784 optComB.setAttribute('selected','selected'); 785 optComB.appendChild(document.createTextNode('CommitteeB')); 786 787 var optComC = document.createElement('option'); 788 optComC.setAttribute('value','CommitteeC'); 789 optComC.setAttribute('selected','selected'); 790 optComC.appendChild(document.createTextNode('CommitteeC')); 791 792 var optComD = document.createElement('option'); 793 optComD.setAttribute('value','CommitteeD'); 794 optComD.setAttribute('selected','selected'); 795 optComD.appendChild(document.createTextNode('CommitteeD')); 796 797 var optComT = document.createElement('option'); 798 optComT.setAttribute('value','CommitteeT'); 799 optComT.setAttribute('selected','selected'); 800 optComT.appendChild(document.createTextNode('CommitteeTest')); 801 768 802 pickQueue.appendChild(optDrafter); 769 803 pickQueue.appendChild(optInbox); 770 804 pickQueue.appendChild(optIssues); 771 } 805 pickQueue.appendChild(optComA); 806 pickQueue.appendChild(optComB); 807 pickQueue.appendChild(optComC); 808 pickQueue.appendChild(optComD); 809 pickQueue.appendChild(optComT); 810 } 811 812 else if (drafter.match(/Committee/)) { 813 var letray = drafter.match(/Committee(.)/); 814 var letter = letray[1]; 815 816 pickQueue = document.createElement('select'); 817 pickQueue.setAttribute('name','queue'); 818 pickQueue.setAttribute('id','queue'); 819 820 var optDrafter = document.createElement('option'); 821 optDrafter.setAttribute('value','Committee'+letter); 822 optDrafter.setAttribute('selected','selected'); 823 optDrafter.appendChild(document.createTextNode('Committee'+letter)); 824 825 var optInbox = document.createElement('option'); 826 optInbox.setAttribute('value','Inbox'); 827 optInbox.appendChild(document.createTextNode('Inbox')); 828 829 var optIssues = document.createElement('option'); 830 optIssues.setAttribute('value','Issues'); 831 optIssues.appendChild(document.createTextNode('Issues')); 832 833 pickQueue.appendChild(optDrafter); 834 pickQueue.appendChild(optInbox); 835 pickQueue.appendChild(optIssues); 836 } 837 772 838 else { 773 839 pickQueue = document.createElement('input'); … … 1063 1129 loadHTMLtoDiv(ticketObj[rtid].full+' '+ticketObj[rtid].link+' <a href="javascript:showExcerpt(\''+rtid+'\')">[-]</a>',myCollapsed.id); 1064 1130 myCollapsed.parentNode.setAttribute('onclick',''); 1065 unOverlap(" annotation",5);1131 unOverlap("newannotation",5); 1066 1132 } 1067 1133 … … 1070 1136 loadHTMLtoDiv(ticketObj[rtid].excerpt+' <a href="javascript:showFull(\''+rtid+'\')">[+]</a>',myFull.id); 1071 1137 myFull.parentNode.setAttribute('onclick','showFull(\''+rtid+'\')'); 1072 unOverlap(" annotation",5);1138 unOverlap("newannotation",5); 1073 1139 } 1074 1140 … … 1132 1198 newMe.appendChild(document.createTextNode(' ')); 1133 1199 sLnk = document.createElement('a'); 1134 sLnk.setAttribute('href','http://gplv3.fsf.org/comments/rt/changeshown.html?came_from='+location.pathname );1200 sLnk.setAttribute('href','http://gplv3.fsf.org/comments/rt/changeshown.html?came_from='+location.pathname+'&filename='+filename); 1135 1201 sLnk.appendChild(document.createTextNode('search')); 1136 1202 newMe.appendChild(sLnk); … … 1172 1238 lLnk.appendChild(document.createTextNode('[list]')); 1173 1239 newMe.appendChild(lLnk); 1240 1241 if (!filename.match(/lgpl-draft-1/)) { 1174 1242 newMe.appendChild(document.createTextNode(' ')); 1175 1243 rat = document.createElement('a'); … … 1177 1245 rat.appendChild(document.createTextNode('[rationale]')); 1178 1246 newMe.appendChild(rat); 1247 } 1179 1248 newMe.appendChild(document.createElement('br')); 1180 1249 newMe.appendChild(document.createTextNode('(found '+t.data+': click highlights to show.) ')); // , showing '+rng.data)); … … 1183 1252 sLnk.setAttribute('id','searchlink'); 1184 1253 sLnkA = document.createElement('a'); 1185 sLnkA.setAttribute('href','http://gplv3.fsf.org/comments/rt/changeshown.html?filename='+filename+' came_from='+location.pathname);1254 sLnkA.setAttribute('href','http://gplv3.fsf.org/comments/rt/changeshown.html?filename='+filename+'&came_from='+location.pathname); 1186 1255 sLnkA.appendChild(document.createTextNode('search')); 1187 1256 sLnk.appendChild(sLnkA)