Cleaner way to include Zotero object in itemPane.xul
This commit is contained in:
parent
299a5de480
commit
c5938c58b5
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user