Dan Stillman
3a9483070e
Merge branch '3.0'
...
Conflicts:
chrome/content/zotero/tinymce/plugins/paste/editor_plugin.js
chrome/content/zotero/xpcom/translation/translate_firefox.js
chrome/content/zotero/zoteroPane.js
install.rdf
update.rdf
2012-11-01 22:14:08 -04:00
Dan Stillman
0d0585b217
Update versions
2012-11-01 01:59:09 -04:00
Simon Kornblith
ab4c2f247d
Merge branch '3.0'
2012-08-05 19:44:57 -04:00
Simon Kornblith
cd6e78899b
Fix "Use profile directory" option to use correct app name
2012-08-01 10:52:00 -04:00
Simon Kornblith
c464321811
Alternative approach to rescuing JIT in Zotero.setTimeout/Zotero.pumpGenerator
2012-07-26 08:56:27 -04:00
Simon Kornblith
344bd1fb74
Revert "Use setTimeout() on hidden window instead of firing an nsITimer to prevent our JS from getting interpreted instead of JITed."
...
This reverts commit 0a9fad4124
.
2012-07-26 08:56:27 -04:00
Simon Kornblith
6f86d85f89
Revert "Fix ReferenceError: timer is not defined from 0a9fad41246f098c3dad1cc72bdaaf634350e371"
...
This reverts commit 99e5bce87c
.
2012-07-26 08:56:27 -04:00
Simon Kornblith
99e5bce87c
Fix ReferenceError: timer is not defined from 0a9fad4124
2012-07-24 03:12:22 -04:00
Simon Kornblith
0a9fad4124
Use setTimeout() on hidden window instead of firing an nsITimer to prevent our JS from getting interpreted instead of JITed.
...
Still need to make sure this doesn't break things on other platforms.
Closes #149 , Fix JITing for initial pane load
2012-07-23 21:24:44 -04:00
Simon Kornblith
d550ac92b4
Q-ize integration.js
...
Adds a new function, Zotero.promiseGenerator, that returns a promise that is fulfilled by the last thing yielded by a generator, or rejected with an error.
2012-07-16 21:50:14 -04:00
Simon Kornblith
0766588241
Closes https://www.zotero.org/trac/ticket/1867 , remove Zotero.Hash
2012-07-13 00:06:49 -04:00
Simon Kornblith
723213f11f
Merge branch '3.0'
...
Conflicts:
chrome/content/zotero/xpcom/translation/translate_firefox.js
chrome/content/zotero/xpcom/zotero.js
install.rdf
update.rdf
2012-07-04 18:24:17 -04:00
Dan Stillman
ca6184ac74
Update versions
2012-07-03 00:19:04 -04:00
Dan Stillman
37a24383a3
Update versions, submodules, and repotime
2012-05-01 00:55:15 -04:00
Dan Stillman
1e87bb9d21
Update versions, maxVersion, submodules, and repotime
2012-04-30 14:43:56 -04:00
Dan Stillman
5804516600
Update version
2012-04-29 23:43:28 -04:00
Dan Stillman
f1aa68f82b
Simplify the file sync code a bit
...
Just call Zotero.Sync.Storage.[ZFS/WebDAV] directly
This probably breaks some things.
2012-03-21 19:39:40 -04:00
Simon Kornblith
947be813ec
Merge branch '3.0'
2012-03-20 02:16:43 -04:00
Dan Stillman
5e19020437
Auto-empty items from trash on idle rather than at pane open
...
Deleting is currently very slow (which will be fixed on master), which
can cause long delays when auto-emptying items older at pane open.
Instead, empty 10 items after 5 minutes of idle, and then another 10
every 5 seconds until there are no more items to empty or the user is back.
2012-03-11 18:54:46 -04:00
Simon Kornblith
b3f9f5102b
Merge branch '3.0'
...
Conflicts:
chrome/content/zotero/overlay.js
chrome/content/zotero/xpcom/schema.js
2012-02-28 17:22:34 -05:00
Dan Stillman
d61fdeda4c
Wait 5 seconds after launch for translator updates (bundled and repo)
...
This isn't ideal, since it could cause an unexplained delay a few
seconds after launch on slow systems, but it's better than delaying
startup. We'll make this non-blocking post-3.0.
2012-02-27 16:34:24 -05:00
Simon Kornblith
99d65926bf
Unregister mimeTypeHandler and version header on Zotero shutdown
2012-02-20 02:26:41 -05:00
Dan Stillman
17e9c466d0
Merge branch '3.0'
2012-02-17 04:26:58 -05:00
Dan Stillman
7dea22bd6e
Update versions
2012-02-17 01:07:36 -05:00
Simon Kornblith
1c83646212
Avoid throwing if attempt to catch startup errors somehow fails?
2012-02-16 14:22:50 -05:00
Simon Kornblith
fb657bf0cf
Fix bustage
2012-02-14 15:20:19 -05:00
Simon Kornblith
a6f253b46a
Knock off beginning rather than end of errors
2012-02-14 00:41:04 -05:00
Simon Kornblith
4c97ee3ce5
Unregister ConsoleListener on Zotero shutdown
2012-02-13 20:50:44 -05:00
Simon Kornblith
6138149e6d
Blacklist "trying to re-register CID" error, which is produced by integration plugins because Firefox version detection for XPCOM components is hard
2012-02-13 20:47:00 -05:00
Simon Kornblith
f403be2fc5
Keep track of startup errors and the last 25 errors on our own (since otherwise errors tend to be crowded out of the buffer by CSS warnings)
2012-02-13 20:47:00 -05:00
Simon Kornblith
ef9040c46d
Revert "Remove antiquated code"
...
This reverts commit d5fc04485b
.
2012-02-11 00:38:21 -05:00
Simon Kornblith
d5fc04485b
Remove antiquated code
2012-02-11 00:34:05 -05:00
Simon Kornblith
564d27f51c
Allow add-ons to be updated via addons.mozilla.org in Zotero Standalone, part 1
2012-02-08 23:06:50 -05:00
Dan Stillman
5f5bc9568c
Update versions
2012-02-08 17:22:23 -05:00
Dan Stillman
fb140c3ff4
Update zotero.js version
2012-02-01 19:33:25 -05:00
Simon Kornblith
50330d9a78
Move repaint code to fileInterface.js, because there's only one use of it
2012-01-31 03:34:06 -05:00
Dan Stillman
24fa452d94
Version update
2012-01-30 22:34:01 -05:00
Simon Kornblith
35642b465f
Fix for broken locale retrieval with Ubuntu Firefox Modifications
2012-01-22 11:27:16 -05:00
Dan Stillman
2b2da828c0
Restore ".SOURCE" in ZOTERO_CONFIG version
2012-01-17 01:19:29 -05:00
Simon Kornblith
c6a366638d
Only use Zotero.version from ZOTERO_CONFIG until we can get it from the add-on manager
2012-01-16 20:39:08 -05:00
Simon Kornblith
e16a0cb47a
Enable JavaScript in hidden browsers. This fixes http://forums.zotero.org/discussion/21381/ (which occurs because document.domain differs even though the origin is the same) and is consistent with the behavior of the connectors.
2012-01-16 11:15:29 -05:00
Dan Stillman
204f9563c6
Fix global flag on Zotero.Prefs.get()
2012-01-05 19:05:50 -05:00
Dan Stillman
9d9ab86729
Update titles/creators quicksearch mode to include year
...
Also:
Change "All Fields" to "All Fields & Tags" to reflect reality
Increase width of search box slightly
2011-12-01 14:33:43 -05:00
Dan Stillman
25ba8c7006
Prepend error info (except other add-ons info) to debug output
2011-11-02 16:46:53 -04:00
Dan Stillman
7a5024df6e
Change "SVN" references to "source"
2011-10-28 01:27:04 -04:00
Dan Stillman
01ea59491a
- Fix error handling in syncing when using pumpGenerator()
...
- Take an optional error handler as the third parameter to pumpGenerator()
2011-10-11 16:18:17 +00:00
Simon Kornblith
8eda39ad7e
Requeue nsITimerCallbacks that didn't execute during pumpGenerator
2011-10-06 01:40:35 +00:00
Simon Kornblith
a3f958be00
Fix version checking in Nightly
2011-10-05 18:42:54 +00:00
Simon Kornblith
54147844ab
- Show search menu in select items dialog
...
- Update search menu in non-ZoteroPane dialogs
- Don't send oncommand handler as string
2011-10-03 02:27:42 +00:00
Simon Kornblith
90dd0f34e0
Defer add-on manager load until it's necessary
2011-10-03 01:27:15 +00:00
Dan Stillman
4b0309511b
The AMO validator strips leading whitespace, so make comment a bit more explicit
2011-09-22 07:03:37 +00:00
Simon Kornblith
17521c96b4
Further abbreviate message
2011-09-22 06:55:35 +00:00
Simon Kornblith
5b5f864943
Combine AMO reviewer comment into 3 lines
2011-09-22 06:50:45 +00:00
Simon Kornblith
606211afa7
Add "Dear friendly AMO reviewer" message to processNextEvent() call that is only used in Z standalone
2011-09-22 06:33:27 +00:00
Dan Stillman
e1cc377162
Show Zotero pane progress bar during sync processing
...
TODO: limit to large syncs?
This needs a lot of testing.
Also:
- Tweak pumpGenerator() wait level behavior to match Zotero.wait()
- If Zotero is closed in the top-most window, show a popup instead of the pane-covering progress meter, and take an optional icon in Zotero.showZoteroPaneProgressMeter() for use in the popup
- Restore protection against opening Zotero pane when Zotero.locked is set
- Display a nicer error if Zotero.DB.commitTransaction() is called without an active transaction
- Allow text with icons to extend to multiple lines in progressWindow popup
- Automatically use current window if one isn't specified in Zotero.repaint()
2011-09-21 23:00:20 +00:00
Simon Kornblith
15c79766e8
Hackish way of avoiding async AddonManager APIs during initialization
2011-09-21 20:30:37 +00:00
Simon Kornblith
50a793c4ea
Stop iterating when StopIteration thrown from generator
2011-09-21 04:36:37 +00:00
Simon Kornblith
27b95ebb14
Remove Zotero.sleep()
2011-09-21 03:43:03 +00:00
Simon Kornblith
c4bfd17e52
Fix error
2011-09-21 00:34:38 +00:00
Simon Kornblith
4607239fa9
Add a function to pump a generator until it yields false, allowing other events to be processed in between. This is useful because we can then call
...
yield true;
in place of Zotero.wait() to allow UI events to be processed without exiting the function, thus avoiding the hassle of setting up a large number of callbacks.
This is still painful compared to Zotero.wait(), since the yield has to be present in the generator passed to Zotero.pumpGenerator() and not a child function. However, it's less painful than using a bunch of nested setTimeout() calls.
2011-09-21 00:32:25 +00:00
Simon Kornblith
21aff6f467
Remove processNextEvent() call
2011-09-20 21:59:28 +00:00
Simon Kornblith
02506966eb
Remove processNextEvent() calls (by avoiding AddonManager)
2011-09-20 21:39:48 +00:00
Simon Kornblith
23b9d6fdb9
- Forward compatible handling of version comparisons
...
- Add Zotero.repaint(window), which forces a UI repaint but doesn't execute any other events. We should use this within transactions to eliminate the nondeterminism of Zotero.wait().
2011-09-20 06:17:06 +00:00
Dan Stillman
09e934128f
Add Trash to group libraries
...
Also:
- Update trash icon properly when adding items to trash or emptying trash
- (dev) Zotero.Items.getDeleted() and Zotero.Items.emptyTrash() parameter order changed
- (dev) Zotero.Items.getDeleted() now returns an empty array rather than FALSE on no results
Group trash does not yet auto-empty
2011-08-30 23:35:12 +00:00
Simon Kornblith
3c02f0b0e6
Zotero.waiting is now a number
2011-08-30 00:49:04 +00:00
Simon Kornblith
28cc02f954
Add a debug call for Zotero.wait()
2011-08-29 23:59:59 +00:00
Simon Kornblith
416907a196
Fix breaking hidden browsers on Firefox 3.6
2011-08-24 20:06:31 +00:00
Simon Kornblith
6cdcb8a1fb
...but do log the error
2011-08-24 06:29:16 +00:00
Simon Kornblith
9b66aa8234
Don't let one failing shutdown listener screw everything up
2011-08-24 06:29:02 +00:00
Simon Kornblith
1a86279e5d
Fix Windows startup error
2011-08-24 06:07:48 +00:00
Simon Kornblith
440fc95942
Move startup timing to zotero-service.js
2011-08-24 01:59:56 +00:00
Simon Kornblith
330a06434e
Improve error logging
2011-08-24 01:15:21 +00:00
Simon Kornblith
abd2456d28
Revert part of last patch, since it doesn't seem to help things
2011-08-24 01:13:33 +00:00
Simon Kornblith
3e641cd7df
Fix first run profile migration on Windows
2011-08-24 00:54:38 +00:00
Simon Kornblith
91024eb87c
- Prevent a deadlock when Zotero.wait() was called during initialization
...
- Don't spin Zotero.mainThread.processNextEvent() forever when translator could not be retrieved
2011-08-16 18:28:55 +00:00
Simon Kornblith
43f26d5b89
- Pass version to repo
...
- Handle translator deletion without logging errors
- Tweak some flags on docShell
2011-08-12 19:20:35 +00:00
Simon Kornblith
b232106526
- XPCOM errors use "filename" instead of "fileName" for some ungodly reason
...
- Fix verison
2011-08-11 04:06:45 +00:00
Dan Stillman
a9f341a141
Blacklist OpenGL errors
2011-08-10 19:58:44 +00:00
Simon Kornblith
b08b54ba83
Add some documentation on the connector switching process
2011-08-07 23:37:51 +00:00
Simon Kornblith
75f4360175
Tweak connector switching to prevent a race condition
2011-08-07 23:26:53 +00:00
Simon Kornblith
f701dd724e
Firefox 3.6 fixes (ugh)
2011-07-24 19:16:31 +00:00
Simon Kornblith
bd1d298ee9
Fix a strict mode warning
2011-07-20 03:12:31 +00:00
Simon Kornblith
c6b30b94e4
Fix error on failure to open DB (broken since megacommit)
2011-07-20 03:07:07 +00:00
Simon Kornblith
ffd671ce7b
- Remove references to Zotero.JSON
...
- Add deprecation warning in case any external code makes use of Zotero.JSON
- Fix some strict mode warnings in zotero.js
2011-07-11 22:37:37 +00:00
Simon Kornblith
0add2d07e6
Move Zotero.varDump to Zotero.Utilities
2011-07-06 07:39:49 +00:00
Simon Kornblith
1774962de9
- Refactor Zotero.Translate save process. There are now itemSaving and itemDone handlers. The itemSaving handler is called as soon as the translator returns an item, but before it's saved to the database. The itemDone handler is called when the item is saved. This allows us to show a grayed-out item icon in the connector while the item is saving to server, and then un-gray it when it is saved to the server.
...
- Move Zotero.randomString() to Zotero.Utilities
- Fix import of collections (broken by recent commits)
2011-07-04 09:08:49 +00:00
Simon Kornblith
0a197f308e
- Open https://www.zotero.org/start_standalone (which doesn't yet exist) in default browser on Standalone first start. This will provide a place to download connectors and create an account.
...
- Don't copy quickstart setting during prefs migration
- Register zotero-reloaded nsIObserver properly
2011-07-03 04:33:37 +00:00
Simon Kornblith
8638b9c496
Fixes #1844 , Fix connector switching hangs with Firefox 3.6 on Windows. Standalone will just take an extra 5 seconds to start if started while Firefox 3.6 is running.
2011-07-03 04:15:49 +00:00
Simon Kornblith
bd165f60bc
- Add ability to pass a callback to Zotero.getTranslators(). AFAIK, this is only used by COinS.
...
- Don't try to do RPC on non-web translators
- Remove Zotero.Text.titleCase from zotero.js
2011-07-01 05:14:45 +00:00
Simon Kornblith
ca1e3f8647
-Retrieve trunk translators from repo
...
-Make translator tester always re-retrieve translators that were previously retrieved from repo
2011-06-30 23:05:15 +00:00
Simon Kornblith
b114266fb3
- Closes #1832 , Connectors should be able to retrieve translator data and code from server in the absence of Zotero Standalone
...
- Closes #1831 , Connectors should be able to save via API in the absence of Zotero Standalone
- Fixes Zotero.Utilities.deepCopy() for arrays
- Fixes some circumstances where an error would not be saved for future error reporting
- Fixes connector status checking
2011-06-30 01:08:30 +00:00
Simon Kornblith
acfd317de9
- Addresses #1828 , Ensure any code that uses nsITimer directly maintains a global reference until callback executes
...
- Adds an optional runWhenWaiting argument to Zotero.setTimeout(), so that code can be set to run even if Zotero.wait() is in progress
2011-06-14 21:26:48 +00:00
Simon Kornblith
11e337a189
fix non-triggering setTimeout calls and restore r9383
2011-06-14 19:24:39 +00:00
Dan Stillman
47dbd613ea
Revert r9383 (substantially) to fix unending sync icon spinning
2011-06-14 17:46:46 +00:00
Simon Kornblith
8268d1b01c
Zotero Everywhere megacommit
...
- Implement connector for Firefox (should switch in/out of connector mode automatically when Standalone is launched or closed, although this has only been tested extensively on OS X)
- Share core translation code between Zotero and connectors
Still to be done:
- Run translators in non-Fx connectors (this works in theory, but it's not currently enabled for any translators)
- Show translation results in non-Fx connectors
- Ability to translate to server when Zotero Standalone is not running
2011-06-14 00:36:21 +00:00
Dan Stillman
09e22e1e5d
- Revert async notifier change in r9341
...
- Better fix for excessive item saving activity
- Fix for erroneous switch to library after adding an item to a collection (since r9341)
2011-06-01 14:28:59 +00:00
Simon Kornblith
8f65c52f6c
clear queued callbacks once they have been requeued and fix typo
2011-05-31 20:01:55 +00:00
Simon Kornblith
3f69b8b9c0
Don't allow functions queued with setTimeout() to execute during Zotero.wait()
...
Fixes fatal error during import
2011-05-31 19:59:07 +00:00
Dan Stillman
8c7c2425f6
Prevent excessive item saving when dragging a child note to another parent (since r8762) by triggering queued notifications asynchronously
2011-05-27 21:33:45 +00:00
Simon Kornblith
cdd9675920
fix memory leak
2011-05-25 19:47:00 +00:00