Author: thorsten
Date: Sat Oct 29 09:19:34 2005
New Revision: 329431
URL: http://svn.apache.org/viewcvs?rev=329431&view=rev
Log:
Changed the 'local forrest' caption to something more meaningful. Added
localhost as option. added structurer xml view to devs.
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=329431&r1=329430&r2=329431&view=diff
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
(original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js Sat
Oct 29 09:19:34 2005
@@ -15,6 +15,12 @@
* limitations under the License.
*/
+var dispatcherCall=false;
+
+function setDispatcherCall(xBoolean) {
+ dispatcherCall=(xBoolean)?true:false;
+}
+
function startforrestbar()
{
//alert("function init");
@@ -52,7 +58,7 @@
alert("This action is only available on Local Forrest (jetty) site...");
return(false);
}
- navigate(href.substring(0, href.lastIndexOf('.') ) + xmltype);
+
(dispatcherCall)?navigate("http://127.0.0.1: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=329431&r1=329430&r2=329431&view=diff
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul
(original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul Sat
Oct 29 09:19:34 2005
@@ -42,8 +42,10 @@
<menuitem label="Current Docs (0.7)"
onclick="navigate('http://forrest.apache.org/docs_0_70/index.html');" />
<menuitem label="Testing Zone"
onclick="navigate('http://forrest.zones.apache.org');" />
<menuseparator />
- <menuitem label="Local Forrest (jetty)"
onclick="navigate('http://127.0.0.1:8888/');" hidden="false" />
- <menuitem label="Local Forrest (webapp)"
onclick="navigate('http://127.0.0.1:8080/');" hidden="false" />
+ <menuitem label="Local Forrest (localhost:8888)"
onclick="navigate('http://localhost:8888/');" hidden="false" />
+ <menuitem label="Local Forrest (127.0.0.1:8888)"
onclick="navigate('http://127.0.0.1:8888/');" hidden="false" />
+ <menuseparator />
+ <menuitem label="Local Forrest (127.0.0.1:8080)"
onclick="navigate('http://127.0.0.1:8080/');" hidden="false" />
</menupopup>
</toolbarbutton>
@@ -82,6 +84,8 @@
<menuitem label="Authors" onclick="viewXML('.authors.xml');" />
<menuitem label="Navigation" onclick="viewXML('.navigation.xml');" />
<menuitem label="Title" onclick="viewXML('.title.xml');" />
+ <menuseparator/>
+ <menuitem label="structurer"
onclick="setDispatcherCall(true);viewXML('prepare.structurer.html.');setDispatcherCall(false);"/>
</menupopup>
</toolbarbutton>
var href = gBrowser.currentURI.spec