Cleaner way to include Zotero object in itemPane.xul

This commit is contained in:
Dan Stillman 2008-06-13 09:54:51 +00:00
parent 299a5de480
commit c5938c58b5
2 changed files with 3 additions and 9 deletions

View File

@ -20,14 +20,6 @@
***** END LICENSE BLOCK *****
*/
// Quick hack to make the Zotero object accessible in item pane in Fx2
// with Fx3-compatible XUL inclusion method
//
// Might be a better way
var Zotero = Components.classes["@zotero.org/Zotero;1"]
.getService(Components.interfaces.nsISupports)
.wrappedJSObject;
var ZoteroItemPane = new function()
{
var _dynamicFields;

View File

@ -28,7 +28,9 @@
<overlay
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="itemPane.js"/>
<script src="include.js"/>
<script src="itemPane.js"/>
<deck id="zotero-view-item" flex="1" onselect="if (this.selectedIndex!==''){ ZoteroItemPane.loadPane(this.selectedIndex) }">
<scrollbox id="zotero-info" flex="1" orient="vertical" style="overflow:auto">
<popupset>