www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 78731858ab111c800f13ec52ffcc46cc526efc5d
parent ee83b7267abbd07681046bfe5e2492417e78bc1a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 20 Aug 2008 01:41:29 +0000

More helpful error message for compat styles in cslpreview and csledit on trunk


Diffstat:
Mchrome/content/zotero/tools/csledit.xul | 6+++++-
Mchrome/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 @@ -101,7 +101,11 @@ } var csl; if (str.indexOf("<defaults") != -1) { - csl = new Zotero.CSL.Compat(str); + iframe.contentDocument.documentElement.innerHTML = + '<div>' + + "Old-style CSLs are no longer supported." + + '</div>'; + return; } else { csl = new Zotero.CSL(str); diff --git a/chrome/content/zotero/tools/cslpreview.xul b/chrome/content/zotero/tools/cslpreview.xul @@ -95,7 +95,7 @@ } var csl; if (str.indexOf("<defaults") != -1) { - csl = new Zotero.CSL.Compat(str); + return "Old-style CSLs are no longer supported."; } else { csl = new Zotero.CSL(str);