Various feeds changes

- Hide notes, tags and related for feed items in itembox
- Add feed support for <enclosure> elements
- Add feed syncing methods for synced settings (additional work is
  needed on the sync architecture to download synced settings from the
  server)
- Change feed item clear policy to be less aggressive
- Adjust for deasyncification
- Disable translate-on-select
- Close adomasven/zotero#7, Remove context menu items from feeds
This commit is contained in:
Adomas Venčkauskas 2016-02-11 11:02:38 +00:00 committed by Dan Stillman
parent 0d4025e9fb
commit 12fc6cfbe8
42 changed files with 894 additions and 379 deletions

View file

@ -385,11 +385,7 @@ function createUnsavedDataObject(objectType, params = {}) {
var createDataObject = Zotero.Promise.coroutine(function* (objectType, params = {}, saveOptions) {
var obj = createUnsavedDataObject(objectType, params);
if (objectType == 'feedItem') {
yield obj.forceSaveTx(saveOptions);
} else {
yield obj.saveTx(saveOptions);
}
yield obj.saveTx(saveOptions);
return obj;
});
@ -453,8 +449,12 @@ function getTestDataDirectory() {
QueryInterface(Components.interfaces.nsIFileURL).file;
}
function getTestDataItemUrl(path) {
return OS.Path.join("resource://zotero-unit-tests/data", path);
function getTestDataUrl(path) {
path = path.split('/');
if (path[0].length == 0) {
path.splice(0, 1);
}
return "resource://zotero-unit-tests/data/" + path.join('/');
}
/**