More helpful error message for compat styles in cslpreview and csledit on trunk
This commit is contained in:
parent
ee83b7267a
commit
78731858ab
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue