From 53705e457e8cefd8339a7aa4b69f21f98bfa0ca1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 20 Aug 2008 01:41:29 +0000 Subject: [PATCH] More helpful error message for compat styles in cslpreview and csledit on trunk --- chrome/content/zotero/tools/csledit.xul | 6 +++++- chrome/content/zotero/tools/cslpreview.xul | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/tools/csledit.xul b/chrome/content/zotero/tools/csledit.xul index 5d3c72c86..920f5e09f 100644 --- a/chrome/content/zotero/tools/csledit.xul +++ b/chrome/content/zotero/tools/csledit.xul @@ -101,7 +101,11 @@ } var csl; if (str.indexOf("' + + "Old-style CSLs are no longer supported." + + ''; + return; } else { csl = new Zotero.CSL(str); diff --git a/chrome/content/zotero/tools/cslpreview.xul b/chrome/content/zotero/tools/cslpreview.xul index e4ce7b010..711662519 100644 --- a/chrome/content/zotero/tools/cslpreview.xul +++ b/chrome/content/zotero/tools/cslpreview.xul @@ -95,7 +95,7 @@ } var csl; if (str.indexOf("