commit dd29d18b9370fdb9988ac27658b8e8b1c243b5fd
parent e7c05c640685f7856fbdfc7f9ee3d68359596074
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 2 Jul 2011 16:52:34 +0000
Open quickstart window on first run in Standalone
Diffstat:
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/standalone/basicViewer.xul b/chrome/content/zotero/standalone/basicViewer.xul
@@ -45,7 +45,7 @@
onload="window.sizeToContent()"
windowtype="zotero:basicViewer"
title="&brandShortName;"
- width="900" height="500"
+ width="1000" height="500"
persist="screenX screenY width height sizemode">
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -224,11 +224,15 @@ var ZoteroPane = new function()
// -- this way the page won't be displayed when they sync their DB to
// another profile or if the DB is initialized erroneously (e.g. while
// switching data directory locations)
- else if (Zotero.Prefs.get('firstRun2') && !Zotero.isStandalone) {
+ else if (Zotero.Prefs.get('firstRun2')) {
if (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled) {
setTimeout(function () {
var url = "http://zotero.org/start";
- gBrowser.selectedTab = gBrowser.addTab(url);
+ if(Zotero.isStandalone) {
+ ZoteroStandalone.openInViewer("http://zotero.org/start");
+ } else {
+ gBrowser.selectedTab = gBrowser.addTab(url);
+ }
}, 400);
}
Zotero.Prefs.set('firstRun2', false);