Author: thorsten
Date: Mon Oct 31 01:16:06 2005
New Revision: 329778

URL: http://svn.apache.org/viewcvs?rev=329778&view=rev
Log:
Added new options:
- ls.contracts for main forrest and project
- structurer-xsl which is the final xsl
- extended the search box to lookup contracts (resolve/prepare contracts)

Modified:
    forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
    forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul

Modified: forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js?rev=329778&r1=329777&r2=329778&view=diff
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js 
(original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js Mon 
Oct 31 01:16:06 2005
@@ -45,6 +45,12 @@
   
navigate('http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=dev_forrest_apache_org&restrict=&exclude=&words='
 + searchItem.value);
 }
 
+function contract(subUrl,searchID)
+{
+  var searchItem = document.getElementById(searchID);
+  navigate('http://localhost:8888/'+subUrl + searchItem.value);
+}
+
 function navProject(searchID) {
   var searchItem = document.getElementById(searchID);
   navigate(searchItem.selectedItem.value);
@@ -58,7 +64,7 @@
     alert("This action is only available on Local Forrest (jetty) site...");
     return(false);
   }
-  
(dispatcherCall)?navigate("http://127.0.0.1:8888/"+xmltype+href.substring(href.lastIndexOf('8888/')+5,
 href.lastIndexOf('.') )):navigate(href.substring(0, href.lastIndexOf('.') ) + 
xmltype);
+  
(dispatcherCall)?navigate("http://localhost:8888/"+xmltype+href.substring(href.lastIndexOf('8888/')+5,
 href.lastIndexOf('.') )):navigate(href.substring(0, href.lastIndexOf('.') ) + 
xmltype);
 }
 
 function isLocalUrl ()

Modified: 
forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul?rev=329778&r1=329777&r2=329778&view=diff
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul 
(original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul Mon 
Oct 31 01:16:06 2005
@@ -86,15 +86,25 @@
           <menuitem label="Title" onclick="viewXML('.title.xml');" />
           <menuseparator/>
           <menuitem label="structurer" 
onclick="setDispatcherCall(true);viewXML('prepare.structurer.html.');setDispatcherCall(false);"/>
+          <menuitem label="structurer-xsl" 
onclick="setDispatcherCall(true);viewXML('structurer-xsl.html.');setDispatcherCall(false);"/>
+          <menuseparator/>
+          <menuitem label="ls.contracts" 
onclick="navigate('http://localhost:8888/ls.contracts.html');" />
+          <menuitem label="ls.contracts.project" 
onclick="navigate('http://localhost:8888/ls.contracts.project.html');" />
         </menupopup>
       </toolbarbutton>
 var href = gBrowser.currentURI.spec
       <toolbarseparator/>
 
       <toolbaritem class="forrestbar" id="forrestbar-search">
-        <label value="Search Forrest dev-mail:"/>
+        <label value="Search Forrest:"/>
         <textbox id="forrestbar-input" hidden="false"/>
-        <toolbarbutton label="Go" onclick="search('forrestbar-input');" 
hidden="false"/>
+        <toolbarbutton label=" dev-mail" onclick="search('forrestbar-input');" 
hidden="false"/>
+        <toolbarbutton label="contracts" hidden="false" type="menu">
+          <menupopup>
+             <menuitem label="resolve-contract" 
onclick="contract('resolve.contract.html.','forrestbar-input');"/>
+             <menuitem label="prepare-contract" 
onclick="contract('prepare.contract.html.','forrestbar-input');"/>
+          </menupopup>
+        </toolbarbutton>
       </toolbaritem>
 
     </toolbar>


Reply via email to