[Yulup-commits] rev 20627 -
public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content
andi at wyona.com
andi at wyona.com
Wed Dec 6 21:41:02 CET 2006
Author: andi
Date: 2006-12-06 21:41:00 +0100 (Wed, 06 Dec 2006)
New Revision: 20627
Modified:
public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.js
public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.xul
Log:
Load external Yulup user manual upon click on the "help" menu item.
Modified: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.js
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.js 2006-12-06 19:39:28 UTC (rev 20626)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.js 2006-12-06 20:41:00 UTC (rev 20627)
@@ -30,6 +30,7 @@
const YULUP_ABOUT_CHROME_URI = "chrome://yulup/content/about.xul";
const YULUP_PREFERENCES_CHROME_URI = "chrome://yulup/content/preferences/preferences.xul";
const YULUP_WS_WIZARD_CHROME_URI = "chrome://yulup/content/wizards/workspacewizard.xul";
+const YULUP_HELP_URI = "http://www.yulup.org/documentation/user-manual/user_manual.xhtml";
const YULUP_DEMO_SITE_URI = "http://demo.yulup.org/";
const YULUP_WEB_SITE_URI = "http://www.yulup.org/";
@@ -402,6 +403,15 @@
}
/**
+ * Load the Yulup help into a new browser window.
+ *
+ * @return {Undefined} does not have a return value
+ */
+function yulupShowHelp() {
+ window.open(YULUP_HELP_URI, "yulupHelpWindow", "left=0,top=0,resizable=yes,scrollbars=yes");
+}
+
+/**
* Load the Yulup demosite into the currently active tab.
*
* @return {Undefined} does not have a return value
Modified: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.xul
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.xul 2006-12-06 19:39:28 UTC (rev 20626)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/yulup.xul 2006-12-06 20:41:00 UTC (rev 20627)
@@ -201,8 +201,8 @@
label="&editPreferencesMenuitem.label;" tooltiptext="&editPreferencesMenuitem.tooltip;"
oncommand="yulupOpenYulupPreferences()"/>
<menuitem id="uiYulupEditHelpMenuitem"
- label="&editHelpMenuitem.label;" tooltiptext="&editHelpMenuitem.tooltip;"
- disabled="true"/>
+ oncommand="yulupShowHelp()"
+ label="&editHelpMenuitem.label;" tooltiptext="&editHelpMenuitem.tooltip;"/>
<menuitem id="uiYulupEditDemoMenuitem"
oncommand="yulupShowDemoSite()"
label="&editDemoMenuitem.label;" tooltiptext="&editDemoMenuitem.tooltip;"/>
More information about the Phoenix-commits
mailing list