From 421e570ada42e1f8022c5d6bfefdad99ffb41789 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 9 Aug 2011 03:49:06 +0000 Subject: [PATCH] Fix a bug in QuickFormat years and enable QuickFormat by default --- chrome/content/zotero/integration/quickFormat.js | 2 +- chrome/content/zotero/preferences/preferences.xul | 6 ++++-- chrome/content/zotero/xpcom/integration.js | 6 +++--- chrome/locale/en-US/zotero/preferences.dtd | 1 + defaults/preferences/zotero.js | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index c673c91f1d..f7001cdb1b 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -217,7 +217,7 @@ var Zotero_QuickFormat = new function () { if(year) { Zotero.debug("QuickFormat: Year: "+year); - s.addCondition("date", "isAfter", (year)+"-01-01 00:00:00"); + s.addCondition("date", "isAfter", (year-1)+"-12-31 23:59:59"); s.addCondition("date", "isBefore", (year)+"-12-31 23:59:59"); haveConditions = true; } diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 40bb5dfbc3..69e264ab4e 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -558,7 +558,8 @@ To add a new preference: image="chrome://zotero/skin/prefs-styles.png"> - + + @@ -571,6 +572,7 @@ To add a new preference: +