Missed changed from 0cd3a34e14

This commit is contained in:
Dan Stillman 2013-03-12 21:10:11 -04:00
parent 487ce7183b
commit d5bfed1c96
2 changed files with 4 additions and 4 deletions

View file

@ -432,7 +432,7 @@ Zotero.CollectionTreeView.prototype.getImageSrc = function(row, col)
var errors = Zotero.Sync.Runner.getErrors(libraryID);
if (errors) {
var e = Zotero.Sync.Runner.getPrimaryError(errors);
switch (e.status) {
switch (e.errorMode) {
case 'warning':
var image = 'error';
break;

View file

@ -3707,7 +3707,7 @@ var ZoteroPane = new function()
+ ps.BUTTON_POS_1 * ps.BUTTON_TITLE_IS_STRING;
// Warning
if (e.status == 'warning') {
if (e.errorMode == 'warning') {
var title = Zotero.getString('general.warning');
// If secondary button not specified, just use an alert
@ -3734,7 +3734,7 @@ var ZoteroPane = new function()
}
}
// Error
else if (e.status == 'error') {
else if (e.errorMode == 'error') {
var title = Zotero.getString('general.error');
// If secondary button is explicitly null, just use an alert
@ -3769,7 +3769,7 @@ var ZoteroPane = new function()
}
}
// Upgrade
else if (e.status == 'upgrade') {
else if (e.errorMode == 'upgrade') {
ps.alert(null, "", e.message);
}
};