Disable Reset feedback, since it causes endless sync icon spinning if the pref window is closed

This commit is contained in:
Dan Stillman 2010-03-17 07:55:36 +00:00
parent 5e1c1bd5b3
commit 82e3cfd288

View File

@ -440,7 +440,12 @@ function handleSyncReset(action) {
case 0:
// TODO: better error handling
Zotero.Sync.Server.clear(function () {
Zotero.Sync.Server.sync({
Zotero.Sync.Server.sync(/*{
// TODO: this doesn't work if the pref window is
closed. fix, perhaps by making original callbacks
available to the custom callbacks
onSuccess: function () {
Zotero.Sync.Runner.setSyncIcon();
pr.alert(
@ -458,7 +463,7 @@ function handleSyncReset(action) {
);
Zotero.Sync.Runner.error(msg);
}
});
}*/);
});
break;
@ -488,7 +493,7 @@ function handleSyncReset(action) {
case 0:
// TODO: better error handling
Zotero.Sync.Server.resetClient();
Zotero.Sync.Server.sync({
Zotero.Sync.Server.sync(/*{
onSuccess: function () {
Zotero.Sync.Runner.setSyncIcon();
pr.alert(
@ -506,7 +511,7 @@ function handleSyncReset(action) {
);
Zotero.Sync.Runner.error(msg);
}
});
}*/);
break;
// Cancel